Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343155
b: refs/heads/master
c: 8620ca9
h: refs/heads/master
i:
  343153: 8f89d60
  343151: aa0449a
v: v3
  • Loading branch information
Laxman Dewangan authored and Mark Brown committed Oct 17, 2012
1 parent 4640cc2 commit 749375d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 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: 24282a1ca33b4a2cdfb907fb7a3ba4d0f6e93311
refs/heads/master: 8620ca9f77b71a0069a6151e859b988117ef1fa5
16 changes: 8 additions & 8 deletions trunk/drivers/regulator/tps65090-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static struct regulator_ops tps65090_ops = {
{ \
.name = "TPS65090_RAILS"#_id, \
.supply_name = _sname, \
.id = TPS65090_ID_##_id, \
.id = TPS65090_REGULATOR_##_id, \
.ops = &_ops, \
.enable_reg = _en_reg, \
.enable_mask = BIT(0), \
Expand All @@ -65,9 +65,9 @@ static struct regulator_desc tps65090_regulator_desc[] = {
static inline bool is_dcdc(int id)
{
switch (id) {
case TPS65090_ID_DCDC1:
case TPS65090_ID_DCDC2:
case TPS65090_ID_DCDC3:
case TPS65090_REGULATOR_DCDC1:
case TPS65090_REGULATOR_DCDC2:
case TPS65090_REGULATOR_DCDC3:
return true;
default:
return false;
Expand Down Expand Up @@ -133,14 +133,14 @@ static int __devinit tps65090_regulator_probe(struct platform_device *pdev)
return -EINVAL;
}

pmic = devm_kzalloc(&pdev->dev, TPS65090_ID_MAX * sizeof(*pmic),
pmic = devm_kzalloc(&pdev->dev, TPS65090_REGULATOR_MAX * sizeof(*pmic),
GFP_KERNEL);
if (!pmic) {
dev_err(&pdev->dev, "mem alloc for pmic failed\n");
return -ENOMEM;
}

for (num = 0; num < TPS65090_ID_MAX; num++) {
for (num = 0; num < TPS65090_REGULATOR_MAX; num++) {
tps_pdata = tps65090_pdata->reg_pdata[num];

ri = &pmic[num];
Expand Down Expand Up @@ -196,7 +196,7 @@ static int __devexit tps65090_regulator_remove(struct platform_device *pdev)
struct tps65090_regulator *ri;
int num;

for (num = 0; num < TPS65090_ID_MAX; ++num) {
for (num = 0; num < TPS65090_REGULATOR_MAX; ++num) {
ri = &pmic[num];
regulator_unregister(ri->rdev);
}
Expand All @@ -205,7 +205,7 @@ static int __devexit tps65090_regulator_remove(struct platform_device *pdev)

static struct platform_driver tps65090_regulator_driver = {
.driver = {
.name = "tps65090-regulator",
.name = "tps65090-pmic",
.owner = THIS_MODULE,
},
.probe = tps65090_regulator_probe,
Expand Down
24 changes: 12 additions & 12 deletions trunk/include/linux/mfd/tps65090.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@

/* TPS65090 Regulator ID */
enum {
TPS65090_ID_DCDC1,
TPS65090_ID_DCDC2,
TPS65090_ID_DCDC3,
TPS65090_ID_FET1,
TPS65090_ID_FET2,
TPS65090_ID_FET3,
TPS65090_ID_FET4,
TPS65090_ID_FET5,
TPS65090_ID_FET6,
TPS65090_ID_FET7,
TPS65090_REGULATOR_DCDC1,
TPS65090_REGULATOR_DCDC2,
TPS65090_REGULATOR_DCDC3,
TPS65090_REGULATOR_FET1,
TPS65090_REGULATOR_FET2,
TPS65090_REGULATOR_FET3,
TPS65090_REGULATOR_FET4,
TPS65090_REGULATOR_FET5,
TPS65090_REGULATOR_FET6,
TPS65090_REGULATOR_FET7,

/* Last entry for maximum ID */
TPS65090_ID_MAX,
TPS65090_REGULATOR_MAX,
};

struct tps65090 {
Expand Down Expand Up @@ -72,7 +72,7 @@ struct tps65090_platform_data {
int irq_base;
int num_subdevs;
struct tps65090_subdev_info *subdevs;
struct tps65090_regulator_plat_data *reg_pdata[TPS65090_ID_MAX];
struct tps65090_regulator_plat_data *reg_pdata[TPS65090_REGULATOR_MAX];
};

/*
Expand Down

0 comments on commit 749375d

Please sign in to comment.