cpuidle: dt: Clarify a comment and simplify code in dt_init_idle_driver()
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 21 Oct 2022 15:10:13 +0000 (17:10 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Oct 2022 18:07:28 +0000 (20:07 +0200)
commitcb51aeec147334d25fa8336d3334ea92e2134052
tree7b9a9d71eee311d2a444a705812ba7b8b45e5ba4
parentee3c2c8ad6ba6785f14a60e4081d7c82e88162a2
cpuidle: dt: Clarify a comment and simplify code in dt_init_idle_driver()

The drv->state_count is assigned the total number of available states, so
let's make that clear.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/dt_idle_states.c