Skip to content

Commit

Permalink
PM / OPP: Make local function ti_opp_supply_set_opp() static
Browse files Browse the repository at this point in the history
Fixes the following sparse warning:

drivers/opp/ti-opp-supply.c:276:5: warning:
 symbol 'ti_opp_supply_set_opp' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
Wei Yongjun authored and rafaeljw committed Dec 28, 2017
1 parent 6b34294 commit 3eff5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/opp/ti-opp-supply.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ static int _opp_set_voltage(struct device *dev,
*
* Return: If successful, 0, else appropriate error value.
*/
int ti_opp_supply_set_opp(struct dev_pm_set_opp_data *data)
static int ti_opp_supply_set_opp(struct dev_pm_set_opp_data *data)
{
struct dev_pm_opp_supply *old_supply_vdd = &data->old_opp.supplies[0];
struct dev_pm_opp_supply *old_supply_vbb = &data->old_opp.supplies[1];
Expand Down

0 comments on commit 3eff5f6

Please sign in to comment.