Commit e9cb77d0 authored by Mark Brown's avatar Mark Brown

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

parents 099cba20 dd1a571d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment