aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 08ccabe07fe3..af8b4dadb09b 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -3002,7 +3002,7 @@ EXPORT_SYMBOL_GPL(regulator_get_linear_step);
3002 * @min_uV: Minimum required voltage in uV. 3002 * @min_uV: Minimum required voltage in uV.
3003 * @max_uV: Maximum required voltage in uV. 3003 * @max_uV: Maximum required voltage in uV.
3004 * 3004 *
3005 * Returns a boolean or a negative error code. 3005 * Returns a boolean.
3006 */ 3006 */
3007int regulator_is_supported_voltage(struct regulator *regulator, 3007int regulator_is_supported_voltage(struct regulator *regulator,
3008 int min_uV, int max_uV) 3008 int min_uV, int max_uV)
@@ -3026,7 +3026,7 @@ int regulator_is_supported_voltage(struct regulator *regulator,
3026 3026
3027 ret = regulator_count_voltages(regulator); 3027 ret = regulator_count_voltages(regulator);
3028 if (ret < 0) 3028 if (ret < 0)
3029 return ret; 3029 return 0;
3030 voltages = ret; 3030 voltages = ret;
3031 3031
3032 for (i = 0; i < voltages; i++) { 3032 for (i = 0; i < voltages; i++) {