aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-10-03 11:56:51 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-29 20:21:23 -0400
commit1f6b9f74ee3d96909e5e70d4207b4b6740d4db62 (patch)
tree7aed88d6deb303db79f0637ae0a07e4aca0af44e
parent0d09d3125642ac1f02937e577819dbc515291d93 (diff)
cpuidle: use drv instead of cpuidle_driver in show_current_driver()
Instances of "struct cpuidle_driver *" are consistently named as "drv" in the cpuidle core except in show_current_driver(). Make that function use variable naming consistent with the rest of the code. [rjw: Changelog] Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/cpuidle/sysfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c
index a0223933536e..e918b6d0caf7 100644
--- a/drivers/cpuidle/sysfs.c
+++ b/drivers/cpuidle/sysfs.c
@@ -52,12 +52,12 @@ static ssize_t show_current_driver(struct device *dev,
52 char *buf) 52 char *buf)
53{ 53{
54 ssize_t ret; 54 ssize_t ret;
55 struct cpuidle_driver *cpuidle_driver; 55 struct cpuidle_driver *drv;
56 56
57 spin_lock(&cpuidle_driver_lock); 57 spin_lock(&cpuidle_driver_lock);
58 cpuidle_driver = cpuidle_get_driver(); 58 drv = cpuidle_get_driver();
59 if (cpuidle_driver) 59 if (drv)
60 ret = sprintf(buf, "%s\n", cpuidle_driver->name); 60 ret = sprintf(buf, "%s\n", drv->name);
61 else 61 else
62 ret = sprintf(buf, "none\n"); 62 ret = sprintf(buf, "none\n");
63 spin_unlock(&cpuidle_driver_lock); 63 spin_unlock(&cpuidle_driver_lock);