PM / sysfs: avoid shadowing variables
authorJohannes Berg <johannes.berg@intel.com>
Mon, 8 Sep 2014 06:48:00 +0000 (08:48 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Sep 2014 13:40:18 +0000 (15:40 +0200)
commit2b4f43131da08881423213dace0a514f325fe134
tree465bc5ec27966963816e5f838d72695cea9084ea
parent2ce7598c9a453e0acd0e07be7be3f5eb39608ebd
PM / sysfs: avoid shadowing variables

The global variable "enabled" is shadowed in a number of
functions in this file, rename it to "_enabled" to avoid
that. For consistency, also rename "disabled" and move
them both into the #ifdef where they're needed.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/sysfs.c