power_supply: twl4030: allow USB charging by default
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 26 Feb 2011 18:00:08 +0000 (20:00 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 14 Jan 2012 22:16:37 +0000 (00:16 +0200)
This is disabled in mainline because we don't know amount of current
host device can provide, but enabling it here regardless like we did
with 2.6.27.

drivers/power/twl4030_charger.c

index 54b9198..248a23b 100644 (file)
@@ -61,7 +61,7 @@
 #define TWL4030_MSTATEC_COMPLETE1      0x0b
 #define TWL4030_MSTATEC_COMPLETE4      0x0e
 
-static bool allow_usb;
+static bool allow_usb = 1;
 module_param(allow_usb, bool, 0644);
 MODULE_PARM_DESC(allow_usb, "Allow USB charge drawing default current");