OSDN Git Service

thermal: sysfs: Reuse cdev->max_state
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 17 Oct 2022 10:03:02 +0000 (15:33 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Oct 2022 16:58:11 +0000 (18:58 +0200)
commita365105c685cad63e3c185c294373a7b81d3ea63
treec909e8d54643c228c5ee4925dc97a31cb0929d9a
parentc408b3d1d9bbc7de5fb0304fea424ef2539da616
thermal: sysfs: Reuse cdev->max_state

Now that the cooling device structure stores the max_state value, reuse
it and drop max_states from struct cooling_dev_stats.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_sysfs.c