Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365050
b: refs/heads/master
c: a1d4948
h: refs/heads/master
v: v3
  • Loading branch information
Lee Jones authored and Mark Brown committed Mar 29, 2013
1 parent 45c967c commit 96f8509
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a387ac5f7b1b37f26f4860344e68e1a1d86aae94
refs/heads/master: a1d494806698ae37c14b0c7fe9e6165e3b0c146c
18 changes: 18 additions & 0 deletions trunk/arch/arm/mach-ux500/board-mop500-regulators.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,3 +476,21 @@ struct ab8500_regulator_platform_data ab8500_regulator_plat_data = {
.ext_regulator = ab8500_ext_regulators,
.num_ext_regulator = ARRAY_SIZE(ab8500_ext_regulators),
};

static void ab8500_modify_reg_init(int id, u8 mask, u8 value)
{
int i;

for (i = ARRAY_SIZE(ab8500_reg_init) - 1; i >= 0; i--) {
if (ab8500_reg_init[i].id == id) {
u8 initval = ab8500_reg_init[i].value;
initval = (initval & ~mask) | (value & mask);
ab8500_reg_init[i].value = initval;

BUG_ON(mask & ~ab8500_reg_init[i].mask);
return;
}
}

BUG_ON(1);
}

0 comments on commit 96f8509

Please sign in to comment.