]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ab8500: Turn unneeded global symbols into local ones
authorAnton Vorontsov <anton.vorontsov@linaro.org>
Wed, 14 Mar 2012 00:43:11 +0000 (04:43 +0400)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 26 Mar 2012 16:41:14 +0000 (20:41 +0400)
The patch fixes the following sparse warning:

drivers/power/ab8500_charger.c:1619:6: warning: symbol 'ab8500_charger_detect_usb_type_work' was not declared. Should it be static?
drivers/power/abx500_chargalg.c:1709:24: warning: symbol 'abx500_chargalg_sysfs_ops' was not declared. Should it be static?
drivers/power/ab8500_fg.c:2328:24: warning: symbol 'ab8500_fg_sysfs_ops' was not declared. Should it be static?

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/ab8500_charger.c
drivers/power/ab8500_fg.c
drivers/power/abx500_chargalg.c

index a7217d6b52bd43a1a95738029c83d94e11837416..e2b4accbec8815782ad1bf659b90e40196d31b63 100644 (file)
@@ -1616,7 +1616,7 @@ static void ab8500_charger_ac_work(struct work_struct *work)
  *
  * Detect the type of USB plugged
  */
-void ab8500_charger_detect_usb_type_work(struct work_struct *work)
+static void ab8500_charger_detect_usb_type_work(struct work_struct *work)
 {
        int ret;
 
index 0441f9d1b29f3976f228e8dbb92bed2e762667f9..eaf149ecb74bfca040aaea3a8ef6848b7304d039 100644 (file)
@@ -2325,7 +2325,7 @@ ab8500_fg_store(struct kobject *kobj, struct attribute *attr, const char *buf,
        return entry->store(di, buf, count);
 }
 
-const struct sysfs_ops ab8500_fg_sysfs_ops = {
+static const struct sysfs_ops ab8500_fg_sysfs_ops = {
        .show = ab8500_fg_show,
        .store = ab8500_fg_store,
 };
index fbb6a1fe97e432247a6f40b6216fb0a8b7906ed5..804b88c760d6bf0a375c486ada3d527bf204d109 100644 (file)
@@ -1706,7 +1706,7 @@ static struct attribute *abx500_chargalg_chg[] = {
        NULL
 };
 
-const struct sysfs_ops abx500_chargalg_sysfs_ops = {
+static const struct sysfs_ops abx500_chargalg_sysfs_ops = {
        .store = abx500_chargalg_sysfs_charger,
 };