opp: Staticize _add_opp_table()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 28 Jan 2021 05:38:47 +0000 (11:08 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 04:56:58 +0000 (10:26 +0530)
_add_opp_table() isn't used outside of core.c, mark it static.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
drivers/opp/opp.h

index 253bc87b5695c4e5bfd45506d1153bfab123dafa..dc7a298f361138bcec831e38547f2be071ccfbd9 100644 (file)
@@ -1193,7 +1193,7 @@ unlock:
        return opp_table;
 }
 
-struct opp_table *_add_opp_table(struct device *dev)
+static struct opp_table *_add_opp_table(struct device *dev)
 {
        return _add_opp_table_indexed(dev, 0);
 }
index 4ced7ffa8158edafb17301c09b91bde731f53e45..ee2593afae0c65c187e8b6da85bb3aa22d373418 100644 (file)
@@ -223,7 +223,6 @@ int _opp_compare_key(struct dev_pm_opp *opp1, struct dev_pm_opp *opp2);
 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table, bool rate_not_available);
 int _opp_add_v1(struct opp_table *opp_table, struct device *dev, unsigned long freq, long u_volt, bool dynamic);
 void _dev_pm_opp_cpumask_remove_table(const struct cpumask *cpumask, int last_cpu);
-struct opp_table *_add_opp_table(struct device *dev);
 struct opp_table *_add_opp_table_indexed(struct device *dev, int index);
 void _put_opp_list_kref(struct opp_table *opp_table);