Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176040
b: refs/heads/master
c: 56baa66
h: refs/heads/master
v: v3
  • Loading branch information
Aaro Koskinen authored and Samuel Ortiz committed Dec 13, 2009
1 parent 0d9c0ae commit be1491e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: b4ead61e570d7b7bcf20a5a1733dd0bc37236c99
refs/heads/master: 56baa667973e53d6d38af2ad3731d558566d818b
6 changes: 3 additions & 3 deletions trunk/drivers/mfd/twl4030-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static int __init twl4030_configure_resource(struct twl4030_resconfig *rconfig)
return err;
}

if (rconfig->devgroup >= 0) {
if (rconfig->devgroup != TWL4030_RESCONFIG_UNDEF) {
grp &= ~DEV_GRP_MASK;
grp |= rconfig->devgroup << DEV_GRP_SHIFT;
err = twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,
Expand All @@ -372,12 +372,12 @@ static int __init twl4030_configure_resource(struct twl4030_resconfig *rconfig)
return err;
}

if (rconfig->type >= 0) {
if (rconfig->type != TWL4030_RESCONFIG_UNDEF) {
type &= ~TYPE_MASK;
type |= rconfig->type << TYPE_SHIFT;
}

if (rconfig->type2 >= 0) {
if (rconfig->type2 != TWL4030_RESCONFIG_UNDEF) {
type &= ~TYPE2_MASK;
type |= rconfig->type2 << TYPE2_SHIFT;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/i2c/twl4030.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ struct twl4030_power_data {
struct twl4030_script **scripts;
unsigned num;
struct twl4030_resconfig *resource_config;
#define TWL4030_RESCONFIG_UNDEF ((u8)-1)
};

extern void twl4030_power_init(struct twl4030_power_data *triton2_scripts);
Expand Down

0 comments on commit be1491e

Please sign in to comment.