Commit c8801a8e authored by Mark Brown's avatar Mark Brown

regulator: core: Mark all get and enable calls as __must_check

It's generally important that devices have power when they expect it so
drivers really ought to be checking for errors on the power up paths.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 6dbe51c2
...@@ -141,17 +141,17 @@ void regulator_put(struct regulator *regulator); ...@@ -141,17 +141,17 @@ void regulator_put(struct regulator *regulator);
void devm_regulator_put(struct regulator *regulator); void devm_regulator_put(struct regulator *regulator);
/* regulator output control and status */ /* regulator output control and status */
int regulator_enable(struct regulator *regulator); int __must_check regulator_enable(struct regulator *regulator);
int regulator_disable(struct regulator *regulator); int regulator_disable(struct regulator *regulator);
int regulator_force_disable(struct regulator *regulator); int regulator_force_disable(struct regulator *regulator);
int regulator_is_enabled(struct regulator *regulator); int regulator_is_enabled(struct regulator *regulator);
int regulator_disable_deferred(struct regulator *regulator, int ms); int regulator_disable_deferred(struct regulator *regulator, int ms);
int regulator_bulk_get(struct device *dev, int num_consumers, int __must_check regulator_bulk_get(struct device *dev, int num_consumers,
struct regulator_bulk_data *consumers); struct regulator_bulk_data *consumers);
int devm_regulator_bulk_get(struct device *dev, int num_consumers, int __must_check devm_regulator_bulk_get(struct device *dev, int num_consumers,
struct regulator_bulk_data *consumers); struct regulator_bulk_data *consumers);
int regulator_bulk_enable(int num_consumers, int __must_check regulator_bulk_enable(int num_consumers,
struct regulator_bulk_data *consumers); struct regulator_bulk_data *consumers);
int regulator_bulk_disable(int num_consumers, int regulator_bulk_disable(int num_consumers,
struct regulator_bulk_data *consumers); struct regulator_bulk_data *consumers);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment