Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323363
b: refs/heads/master
c: 9d6da6f
h: refs/heads/master
i:
  323361: f13b82b
  323359: 490de95
v: v3
  • Loading branch information
Kim, Milo authored and Mark Brown committed Sep 5, 2012
1 parent 82e4310 commit 952437f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 86b3fef0c7b5aba1c64ac1e02e68267aeaff44a6
refs/heads/master: 9d6da6fcc2831220a8754385ee54847e3ee6274f
8 changes: 4 additions & 4 deletions trunk/drivers/regulator/lp872x.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ static int lp872x_regulator_enable_time(struct regulator_dev *rdev)
return val > MAX_DELAY ? 0 : val * time_step_us;
}

static void lp872x_set_dvs(struct lp872x *lp, int gpio)
static void lp872x_set_dvs(struct lp872x *lp, enum lp872x_dvs_sel dvs_sel,
int gpio)
{
enum lp872x_dvs_sel dvs_sel = lp->pdata->dvs->vsel;
enum lp872x_dvs_state state;

state = dvs_sel == SEL_V1 ? DVS_HIGH : DVS_LOW;
Expand Down Expand Up @@ -343,10 +343,10 @@ static int lp872x_buck_set_voltage_sel(struct regulator_dev *rdev,
struct lp872x *lp = rdev_get_drvdata(rdev);
enum lp872x_regulator_id buck = rdev_get_id(rdev);
u8 addr, mask = LP872X_VOUT_M;
struct lp872x_dvs *dvs = lp->pdata->dvs;
struct lp872x_dvs *dvs = lp->pdata ? lp->pdata->dvs : NULL;

if (dvs && gpio_is_valid(dvs->gpio))
lp872x_set_dvs(lp, dvs->gpio);
lp872x_set_dvs(lp, dvs->vsel, dvs->gpio);

addr = lp872x_select_buck_vout_addr(lp, buck);
if (!lp872x_is_valid_buck_addr(addr))
Expand Down

0 comments on commit 952437f

Please sign in to comment.