Merge remote-tracking branch 'regulator/fix/bypass' into regulator-linus

This commit is contained in:
Mark Brown 2016-05-13 14:22:38 +01:00
commit e9cb77d03c
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ int regulator_get_bypass_regmap(struct regulator_dev *rdev, bool *enable)
if (ret != 0)
return ret;
*enable = val & rdev->desc->bypass_mask;
*enable = (val & rdev->desc->bypass_mask) == rdev->desc->bypass_val_on;
return 0;
}