diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2024-06-19 16:08:44 +0200 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2024-06-25 16:57:41 +0530 |
commit | 0d865221c8b13d8537fc7a1baa02061c428ad039 (patch) | |
tree | 89cd2572ea4276738221984ddb0b7e49f205e957 | |
parent | d86a2f0800683652004490c590b4b96a63e7fc04 (diff) |
OPP: Drop a redundant in-parameter to _set_opp_level()
The in-parameter "opp_table" isn't needed by _set_opp_level(). Let's
therefore drop it.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rw-r--r-- | drivers/opp/core.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 4e4d293bf5b1..5f4598246a87 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -1102,8 +1102,7 @@ static int _set_required_opps(struct device *dev, struct opp_table *opp_table, return 0; } -static int _set_opp_level(struct device *dev, struct opp_table *opp_table, - struct dev_pm_opp *opp) +static int _set_opp_level(struct device *dev, struct dev_pm_opp *opp) { unsigned int level = 0; int ret = 0; @@ -1171,7 +1170,7 @@ static int _disable_opp_table(struct device *dev, struct opp_table *opp_table) if (opp_table->regulators) regulator_disable(opp_table->regulators[0]); - ret = _set_opp_level(dev, opp_table, NULL); + ret = _set_opp_level(dev, NULL); if (ret) goto out; @@ -1220,7 +1219,7 @@ static int _set_opp(struct device *dev, struct opp_table *opp_table, return ret; } - ret = _set_opp_level(dev, opp_table, opp); + ret = _set_opp_level(dev, opp); if (ret) return ret; @@ -1267,7 +1266,7 @@ static int _set_opp(struct device *dev, struct opp_table *opp_table, return ret; } - ret = _set_opp_level(dev, opp_table, opp); + ret = _set_opp_level(dev, opp); if (ret) return ret; |