Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302123
b: refs/heads/master
c: 4b3bd55
h: refs/heads/master
i:
  302121: 780e1eb
  302119: b2d3f79
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 1, 2012
1 parent f259e16 commit 7abdc15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 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: 0ca2d6e65268477a53f959320a43d13b0c4d6b70
refs/heads/master: 4b3bd55f5445648f981669758599a6172760d37d
28 changes: 14 additions & 14 deletions trunk/drivers/regulator/tps65090-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,31 +94,31 @@ static struct regulator_ops tps65090_ops = {
.is_enabled = tps65090_reg_is_enabled,
};

#define tps65090_REG(_id, _en_reg, _en_bit, _ops) \
#define tps65090_REG(_id) \
{ \
.reg_en_reg = _en_reg, \
.en_bit = _en_bit, \
.reg_en_reg = (TPS65090_ID_##_id) + 12, \
.en_bit = 0, \
.id = TPS65090_ID_##_id, \
.desc = { \
.name = tps65090_rails(_id), \
.id = TPS65090_ID_##_id, \
.ops = &_ops, \
.ops = &tps65090_ops, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
}, \
}

static struct tps65090_regulator TPS65090_regulator[] = {
tps65090_REG(DCDC1, 12, 0, tps65090_ops),
tps65090_REG(DCDC2, 13, 0, tps65090_ops),
tps65090_REG(DCDC3, 14, 0, tps65090_ops),
tps65090_REG(FET1, 15, 0, tps65090_ops),
tps65090_REG(FET2, 16, 0, tps65090_ops),
tps65090_REG(FET3, 17, 0, tps65090_ops),
tps65090_REG(FET4, 18, 0, tps65090_ops),
tps65090_REG(FET5, 19, 0, tps65090_ops),
tps65090_REG(FET6, 20, 0, tps65090_ops),
tps65090_REG(FET7, 21, 0, tps65090_ops),
tps65090_REG(DCDC1),
tps65090_REG(DCDC2),
tps65090_REG(DCDC3),
tps65090_REG(FET1),
tps65090_REG(FET2),
tps65090_REG(FET3),
tps65090_REG(FET4),
tps65090_REG(FET5),
tps65090_REG(FET6),
tps65090_REG(FET7),
};

static inline struct tps65090_regulator *find_regulator_info(int id)
Expand Down

0 comments on commit 7abdc15

Please sign in to comment.