]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/i2c/twl4030.h
Triton BCI driver for OMAP3430 - USB changes
[linux-2.6-omap-h63xx.git] / include / linux / i2c / twl4030.h
index 40af46e181e911c13dbf51575bc840fe8f2c81cf..b141cc73c23b7796beebf1b27866307199f0c301 100644 (file)
@@ -127,4 +127,11 @@ int twl4030_set_gpio_edge_ctrl(int gpio, int edge);
 int twl4030_set_gpio_debounce(int gpio, int enable);
 int twl4030_free_gpio(int gpio);
 
+#if defined(CONFIG_TWL4030_BCI_BATTERY) || \
+       defined(CONFIG_TWL4030_BCI_BATTERY_MODULE)
+       extern int twl4030charger_usb_en(int enable);
+#else
+       static inline int twl4030charger_usb_en(int enable) { return 0; }
+#endif
+
 #endif /* End of __TWL4030_H */