mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
regulator/bq24022: fix bug in is_enabled function
This seems to be fallout from last October's regulator core rework. It got noticed only because of recent regulator framework changes. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
aa61d558f0
commit
030853b7ab
1 changed files with 1 additions and 2 deletions
|
@ -61,8 +61,7 @@ static int bq24022_disable(struct regulator_dev *rdev)
|
|||
|
||||
static int bq24022_is_enabled(struct regulator_dev *rdev)
|
||||
{
|
||||
struct platform_device *pdev = rdev_get_drvdata(rdev);
|
||||
struct bq24022_mach_info *pdata = pdev->dev.platform_data;
|
||||
struct bq24022_mach_info *pdata = rdev_get_drvdata(rdev);
|
||||
|
||||
return !gpio_get_value(pdata->gpio_nce);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue