Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f6b9f74 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

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: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 0d09d312
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -52,12 +52,12 @@ static ssize_t show_current_driver(struct device *dev,
				   char *buf)
{
	ssize_t ret;
	struct cpuidle_driver *cpuidle_driver;
	struct cpuidle_driver *drv;

	spin_lock(&cpuidle_driver_lock);
	cpuidle_driver = cpuidle_get_driver();
	if (cpuidle_driver)
		ret = sprintf(buf, "%s\n", cpuidle_driver->name);
	drv = cpuidle_get_driver();
	if (drv)
		ret = sprintf(buf, "%s\n", drv->name);
	else
		ret = sprintf(buf, "none\n");
	spin_unlock(&cpuidle_driver_lock);