aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/power/pcf50633-charger.c15
-rw-r--r--include/linux/mfd/pcf50633/mbc.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/drivers/power/pcf50633-charger.c b/drivers/power/pcf50633-charger.c
index 1fe1e851a8d..e8b278f7178 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{
diff --git a/include/linux/mfd/pcf50633/mbc.h b/include/linux/mfd/pcf50633/mbc.h
index 6e17619b773..4119579acf2 100644
--- a/include/linux/mfd/pcf50633/mbc.h
+++ b/include/linux/mfd/pcf50633/mbc.h
@@ -128,7 +128,6 @@ enum pcf50633_reg_mbcs3 {
128int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma); 128int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma);
129 129
130int pcf50633_mbc_get_status(struct pcf50633 *); 130int pcf50633_mbc_get_status(struct pcf50633 *);
131void pcf50633_mbc_set_status(struct pcf50633 *, int what, int status);
132 131
133#endif 132#endif
134 133