aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/pcf50633-charger.c
diff options
context:
space:
mode:
authorBalaji Rao <balajirrao@openmoko.org>2009-01-27 08:52:55 -0500
committerAnton Vorontsov <cbouatmailru@gmail.com>2009-02-02 11:58:45 -0500
commitcc52a29e6245acd9032fcfa0ffcab4cc612de986 (patch)
tree4b17e959ddfa184649728b29a36d96d759477138 /drivers/power/pcf50633-charger.c
parent9705ecc5c1f8f34f756164a711b4cc61110c0283 (diff)
pcf50633_charger: Remove unused mbc_set_status function
The 'pcf50633_mbc_set_status' function is unused, so remove it. Signed-off-by: Balaji Rao <balajirrao@openmoko.org> Cc: Andy Green <andy@openmoko.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/pcf50633-charger.c')
-rw-r--r--drivers/power/pcf50633-charger.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/power/pcf50633-charger.c b/drivers/power/pcf50633-charger.c
index 1fe1e851a8dd..e8b278f71781 100644
--- a/drivers/power/pcf50633-charger.c
+++ b/drivers/power/pcf50633-charger.c
@@ -106,21 +106,6 @@ int pcf50633_mbc_get_status(struct pcf50633 *pcf)
106} 106}
107EXPORT_SYMBOL_GPL(pcf50633_mbc_get_status); 107EXPORT_SYMBOL_GPL(pcf50633_mbc_get_status);
108 108
109void pcf50633_mbc_set_status(struct pcf50633 *pcf, int what, int status)
110{
111 struct pcf50633_mbc *mbc = platform_get_drvdata(pcf->mbc_pdev);
112
113 if (what & PCF50633_MBC_USB_ONLINE)
114 mbc->usb_online = !!status;
115 if (what & PCF50633_MBC_USB_ACTIVE)
116 mbc->usb_active = !!status;
117 if (what & PCF50633_MBC_ADAPTER_ONLINE)
118 mbc->adapter_online = !!status;
119 if (what & PCF50633_MBC_ADAPTER_ACTIVE)
120 mbc->adapter_active = !!status;
121}
122EXPORT_SYMBOL_GPL(pcf50633_mbc_set_status);
123
124static ssize_t 109static ssize_t
125show_chgmode(struct device *dev, struct device_attribute *attr, char *buf) 110show_chgmode(struct device *dev, struct device_attribute *attr, char *buf)
126{ 111{