mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
regulator: max8952 - fix wrong gpio valid check
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
902daf6580
commit
e2cf3137aa
@ -139,7 +139,7 @@ static int max8952_set_voltage(struct regulator_dev *rdev,
|
|||||||
s8 vid = -1, i;
|
s8 vid = -1, i;
|
||||||
|
|
||||||
if (!gpio_is_valid(max8952->pdata->gpio_vid0) ||
|
if (!gpio_is_valid(max8952->pdata->gpio_vid0) ||
|
||||||
!gpio_is_valid(max8952->pdata->gpio_vid0)) {
|
!gpio_is_valid(max8952->pdata->gpio_vid1)) {
|
||||||
/* DVS not supported */
|
/* DVS not supported */
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user