Jelajahi Sumber

regulator/driver: be more specific in nanodoc for is_enabled

Document the possibility that is_enabled may also return with negative
errorcodes.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Wolfram Sang 15 tahun lalu
induk
melakukan
d87b969d15
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      include/linux/regulator/driver.h

+ 2 - 1
include/linux/regulator/driver.h

@@ -37,7 +37,8 @@ enum regulator_status {
  *
  *
  * @enable: Configure the regulator as enabled.
  * @enable: Configure the regulator as enabled.
  * @disable: Configure the regulator as disabled.
  * @disable: Configure the regulator as disabled.
- * @is_enabled: Return 1 if the regulator is enabled, 0 otherwise.
+ * @is_enabled: Return 1 if the regulator is enabled, 0 if not.
+ *		May also return negative errno.
  *
  *
  * @set_voltage: Set the voltage for the regulator within the range specified.
  * @set_voltage: Set the voltage for the regulator within the range specified.
  *               The driver should select the voltage closest to min_uV.
  *               The driver should select the voltage closest to min_uV.