aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2009-07-29 18:24:39 +0400
committerLars-Peter Clausen <lars@metafoo.de>2009-12-06 09:09:24 +0100
commit906d310ef033cd5ba790ada999673d11c727ae95 (patch)
treec8d373bc7fb77e6c7148546b4b389f1b4aac8746 /include/linux
parentc6af44a6b6624d82f608da46a33df5e531e58d60 (diff)
power: pcf50633: query charger status directly
Current scheme is fragile and is likely to go off sync, especially on batfull->adapter charging automatic MBC transition. Query the status bit every time we need it instead. We need to export another function to query for USB presence because we can't read anything from PCF50633 (via I2C) inside irq context and that is needed by usb gadgets. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/pcf50633/mbc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/pcf50633/mbc.h b/include/linux/mfd/pcf50633/mbc.h
index 4119579acf2..df4f5fa88de 100644
--- a/include/linux/mfd/pcf50633/mbc.h
+++ b/include/linux/mfd/pcf50633/mbc.h
@@ -128,6 +128,7 @@ enum pcf50633_reg_mbcs3 {
int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma);
int pcf50633_mbc_get_status(struct pcf50633 *);
+int pcf50633_mbc_get_usb_online_status(struct pcf50633 *);
#endif