Skip to content

Commit

Permalink
ab8500: Turn unneeded global symbols into local ones
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Vorontsov committed Mar 26, 2012
1 parent 0fff22e commit 64eb9b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/power/ab8500_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion drivers/power/ab8500_fg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/power/abx500_chargalg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 64eb9b0

Please sign in to comment.