Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350431
b: refs/heads/master
c: f02a391
h: refs/heads/master
i:
  350429: b8461e7
  350427: fe3c7db
  350423: a4af0fa
  350415: 2b98ed7
  350399: ba08e93
v: v3
  • Loading branch information
Kim, Milo authored and Mark Brown committed Jan 3, 2013
1 parent fb20b16 commit 18a5348
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 939e88f0909a4dd76cf75b9bda6ee905c04a162f
refs/heads/master: f02a3917b3bc65149cc077396896f2ae5a2fbe4a
14 changes: 8 additions & 6 deletions trunk/drivers/regulator/lp8788-ldo.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,11 @@ static struct regulator_desc lp8788_aldo_desc[] = {
},
};

static int lp8788_gpio_request_ldo_en(struct lp8788_ldo *ldo,
static int lp8788_gpio_request_ldo_en(struct platform_device *pdev,
struct lp8788_ldo *ldo,
enum lp8788_ext_ldo_en_id id)
{
struct device *dev = ldo->lp->dev;
struct device *dev = &pdev->dev;
struct lp8788_ldo_enable_pin *pin = ldo->en_pin;
int ret, gpio, pinstate;
char *name[] = {
Expand Down Expand Up @@ -647,7 +648,8 @@ static int lp8788_gpio_request_ldo_en(struct lp8788_ldo *ldo,
return ret;
}

static int lp8788_config_ldo_enable_mode(struct lp8788_ldo *ldo,
static int lp8788_config_ldo_enable_mode(struct platform_device *pdev,
struct lp8788_ldo *ldo,
enum lp8788_ldo_id id)
{
int ret;
Expand Down Expand Up @@ -693,7 +695,7 @@ static int lp8788_config_ldo_enable_mode(struct lp8788_ldo *ldo,

ldo->en_pin = pdata->ldo_pin[enable_id];

ret = lp8788_gpio_request_ldo_en(ldo, enable_id);
ret = lp8788_gpio_request_ldo_en(pdev, ldo, enable_id);
if (ret)
goto set_default_ldo_enable_mode;

Expand All @@ -717,7 +719,7 @@ static int lp8788_dldo_probe(struct platform_device *pdev)
return -ENOMEM;

ldo->lp = lp;
ret = lp8788_config_ldo_enable_mode(ldo, lp8788_dldo_id[id]);
ret = lp8788_config_ldo_enable_mode(pdev, ldo, lp8788_dldo_id[id]);
if (ret)
return ret;

Expand Down Expand Up @@ -773,7 +775,7 @@ static int lp8788_aldo_probe(struct platform_device *pdev)
return -ENOMEM;

ldo->lp = lp;
ret = lp8788_config_ldo_enable_mode(ldo, lp8788_aldo_id[id]);
ret = lp8788_config_ldo_enable_mode(pdev, ldo, lp8788_aldo_id[id]);
if (ret)
return ret;

Expand Down

0 comments on commit 18a5348

Please sign in to comment.