aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/twl4030_charger.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-05-08 17:40:39 -0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2012-06-19 22:12:38 -0400
commit9c645d2f887bd92df487b2c5dcd44d5fc0e7c761 (patch)
tree90e16daa8fc8437cbc1697a17f62a9a2b3e6c98f /drivers/power/twl4030_charger.c
parent5fc55bc8225d5a5c13b978e3e3dbf51e6cd6a333 (diff)
twl4030_charger: Fix some typos
Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/twl4030_charger.c')
-rw-r--r--drivers/power/twl4030_charger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/twl4030_charger.c b/drivers/power/twl4030_charger.c
index fdad850c77d3..3e6e99101106 100644
--- a/drivers/power/twl4030_charger.c
+++ b/drivers/power/twl4030_charger.c
@@ -103,7 +103,7 @@ static int twl4030_bci_read(u8 reg, u8 *val)
103 103
104static int twl4030_clear_set_boot_bci(u8 clear, u8 set) 104static int twl4030_clear_set_boot_bci(u8 clear, u8 set)
105{ 105{
106 return twl4030_clear_set(TWL4030_MODULE_PM_MASTER, 0, 106 return twl4030_clear_set(TWL4030_MODULE_PM_MASTER, clear,
107 TWL4030_CONFIG_DONE | TWL4030_BCIAUTOWEN | set, 107 TWL4030_CONFIG_DONE | TWL4030_BCIAUTOWEN | set,
108 TWL4030_PM_MASTER_BOOT_BCI); 108 TWL4030_PM_MASTER_BOOT_BCI);
109} 109}
@@ -151,14 +151,14 @@ static int twl4030_bci_have_vbus(struct twl4030_bci *bci)
151} 151}
152 152
153/* 153/*
154 * Enable/Disable USB Charge funtionality. 154 * Enable/Disable USB Charge functionality.
155 */ 155 */
156static int twl4030_charger_enable_usb(struct twl4030_bci *bci, bool enable) 156static int twl4030_charger_enable_usb(struct twl4030_bci *bci, bool enable)
157{ 157{
158 int ret; 158 int ret;
159 159
160 if (enable) { 160 if (enable) {
161 /* Check for USB charger conneted */ 161 /* Check for USB charger connected */
162 if (!twl4030_bci_have_vbus(bci)) 162 if (!twl4030_bci_have_vbus(bci))
163 return -ENODEV; 163 return -ENODEV;
164 164