Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261796
b: refs/heads/master
c: 28d48f0
h: refs/heads/master
v: v3
  • Loading branch information
Grazvydas Ignotas authored and Anton Vorontsov committed Jul 8, 2011
1 parent 659f16a commit 1671607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: ccf8fa2d1b4dd8660aadc830f22645781628b894
refs/heads/master: 28d48f04ead41438f14d167fe61fd179de7029f3
10 changes: 5 additions & 5 deletions trunk/drivers/power/twl4030_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#define TWL4030_MSTATEC_COMPLETE4 0x0e

static bool allow_usb;
module_param(allow_usb, bool, 1);
module_param(allow_usb, bool, 0644);
MODULE_PARM_DESC(allow_usb, "Allow USB charge drawing default current");

struct twl4030_bci {
Expand Down Expand Up @@ -425,7 +425,7 @@ static int __init twl4030_bci_probe(struct platform_device *pdev)
{
struct twl4030_bci *bci;
int ret;
int reg;
u32 reg;

bci = kzalloc(sizeof(*bci), GFP_KERNEL);
if (bci == NULL)
Expand Down Expand Up @@ -486,7 +486,7 @@ static int __init twl4030_bci_probe(struct platform_device *pdev)
}

/* Enable interrupts now. */
reg = ~(TWL4030_ICHGLOW | TWL4030_ICHGEOC | TWL4030_TBATOR2 |
reg = ~(u32)(TWL4030_ICHGLOW | TWL4030_ICHGEOC | TWL4030_TBATOR2 |
TWL4030_TBATOR1 | TWL4030_BATSTS);
ret = twl_i2c_write_u8(TWL4030_MODULE_INTERRUPTS, reg,
TWL4030_INTERRUPTS_BCIIMR1A);
Expand All @@ -495,7 +495,7 @@ static int __init twl4030_bci_probe(struct platform_device *pdev)
goto fail_unmask_interrupts;
}

reg = ~(TWL4030_VBATOV | TWL4030_VBUSOV | TWL4030_ACCHGOV);
reg = ~(u32)(TWL4030_VBATOV | TWL4030_VBUSOV | TWL4030_ACCHGOV);
ret = twl_i2c_write_u8(TWL4030_MODULE_INTERRUPTS, reg,
TWL4030_INTERRUPTS_BCIIMR2A);
if (ret < 0)
Expand Down Expand Up @@ -572,7 +572,7 @@ static void __exit twl4030_bci_exit(void)
}
module_exit(twl4030_bci_exit);

MODULE_AUTHOR("Gražydas Ignotas");
MODULE_AUTHOR("Gražvydas Ignotas");
MODULE_DESCRIPTION("TWL4030 Battery Charger Interface driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:twl4030_bci");

0 comments on commit 1671607

Please sign in to comment.