Skip to content

Commit

Permalink
regulator: Silence build warnings from regulator_can_change_voltage()
Browse files Browse the repository at this point in the history
Cut down on noise for mainstream users of the API and people doing build
testing by dropping the deprecated flag from regulator_can_change_voltage()
as it triggers even on the EXPORT_SYMBOL_GPL() which affects all builds
rather than just the remaining drivers with calls to it (for which fixes
are currently pending).

The function remains deprecated and is expected to be removed entirely
in v4.8.

Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed May 17, 2016
1 parent 4f38c56 commit ec4c436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/regulator/consumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ int regulator_bulk_force_disable(int num_consumers,
void regulator_bulk_free(int num_consumers,
struct regulator_bulk_data *consumers);

int __deprecated regulator_can_change_voltage(struct regulator *regulator);
int regulator_can_change_voltage(struct regulator *regulator);
int regulator_count_voltages(struct regulator *regulator);
int regulator_list_voltage(struct regulator *regulator, unsigned selector);
int regulator_is_supported_voltage(struct regulator *regulator,
Expand Down Expand Up @@ -436,7 +436,7 @@ static inline void regulator_bulk_free(int num_consumers,
{
}

static inline int __deprecated regulator_can_change_voltage(struct regulator *regulator)
static inline int regulator_can_change_voltage(struct regulator *regulator)
{
return 0;
}
Expand Down

0 comments on commit ec4c436

Please sign in to comment.