1 From 3574745cad910ce45db692baadf1fe233bc383b5 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Tue, 22 Jul 2008 22:17:04 +0100
4 Subject: [PATCH] fix-pcf50633-remove-charger-curlim-and-enable-apis-from-export.patch
6 Setting the current limit directly and enabling the charger
7 isn't anyone's business except pcf50633 driver itself, so these
8 two functions should not be exported and become static.
10 Signed-off-by: Andy Green <andy@openmoko.com>
12 drivers/i2c/chips/pcf50633.c | 10 ++++++----
13 include/linux/pcf50633.h | 6 ------
14 2 files changed, 6 insertions(+), 10 deletions(-)
16 diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
17 index d9b78d8..bd47ebc 100644
18 --- a/drivers/i2c/chips/pcf50633.c
19 +++ b/drivers/i2c/chips/pcf50633.c
20 @@ -194,6 +194,10 @@ EXPORT_SYMBOL_GPL(pcf50633_global);
22 static struct platform_device *pcf50633_pdev;
24 +static void pcf50633_usb_curlim_set(struct pcf50633_data *pcf, int ma);
25 +static void pcf50633_charge_enable(struct pcf50633_data *pcf, int on);
28 /***********************************************************************
30 ***********************************************************************/
31 @@ -1385,7 +1389,7 @@ static DEVICE_ATTR(voltage_hcldo, S_IRUGO | S_IWUSR, show_vreg, set_vreg);
32 ***********************************************************************/
34 /* Set maximum USB current limit */
35 -void pcf50633_usb_curlim_set(struct pcf50633_data *pcf, int ma)
36 +static void pcf50633_usb_curlim_set(struct pcf50633_data *pcf, int ma)
40 @@ -1440,7 +1444,6 @@ set_it:
41 PCF50633_MBCC1_AUTORES);
44 -EXPORT_SYMBOL_GPL(pcf50633_usb_curlim_set);
46 static ssize_t show_usblim(struct device *dev, struct device_attribute *attr,
48 @@ -1465,7 +1468,7 @@ static ssize_t show_usblim(struct device *dev, struct device_attribute *attr,
49 static DEVICE_ATTR(usb_curlim, S_IRUGO | S_IWUSR, show_usblim, NULL);
51 /* Enable/disable charging */
52 -void pcf50633_charge_enable(struct pcf50633_data *pcf, int on)
53 +static void pcf50633_charge_enable(struct pcf50633_data *pcf, int on)
57 @@ -1502,7 +1505,6 @@ void pcf50633_charge_enable(struct pcf50633_data *pcf, int on)
58 reg_set_bit_mask(pcf, PCF50633_REG_MBCC1, PCF50633_MBCC1_CHGENA,
61 -EXPORT_SYMBOL_GPL(pcf50633_charge_enable);
65 diff --git a/include/linux/pcf50633.h b/include/linux/pcf50633.h
66 index b4d65dc..c11a637 100644
67 --- a/include/linux/pcf50633.h
68 +++ b/include/linux/pcf50633.h
69 @@ -111,12 +111,6 @@ pcf50633_onoff_set(struct pcf50633_data *pcf,
70 enum pcf50633_regulator_id reg, int on);
73 -pcf50633_usb_curlim_set(struct pcf50633_data *pcf, int ma);
76 -pcf50633_charge_enable(struct pcf50633_data *pcf, int on);
79 pcf50633_backlight_resume(struct pcf50633_data *pcf);