diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-12-09 22:43:22 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-12-09 22:43:22 -0500 |
commit | f4244c68fff39b28235c862d7533c825390e9020 (patch) | |
tree | 7b2aeccdfb6cc2b40d5d372f13727e5d75aab1ad /include/linux/regulator/consumer.h | |
parent | 4247bfe20ab1cb8cf1874b811c0dc60bcd0249e8 (diff) | |
parent | fe1e43f7190da98b396265639845a6cc0d748aad (diff) |
Merge remote-tracking branch 'regulator/topic/tol' into regulator-next
Diffstat (limited to 'include/linux/regulator/consumer.h')
-rw-r--r-- | include/linux/regulator/consumer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 8bb7eba4ec45..7bc732ce6e50 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h | |||
@@ -372,4 +372,12 @@ static inline int regulator_set_voltage_tol(struct regulator *regulator, | |||
372 | new_uV - tol_uV, new_uV + tol_uV); | 372 | new_uV - tol_uV, new_uV + tol_uV); |
373 | } | 373 | } |
374 | 374 | ||
375 | static inline int regulator_is_supported_voltage_tol(struct regulator *regulator, | ||
376 | int target_uV, int tol_uV) | ||
377 | { | ||
378 | return regulator_is_supported_voltage(regulator, | ||
379 | target_uV - tol_uV, | ||
380 | target_uV + tol_uV); | ||
381 | } | ||
382 | |||
375 | #endif | 383 | #endif |