thermal/drivers/cpuidle_cooling: Use device name instead of auto-numbering
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 14 Mar 2021 11:13:32 +0000 (12:13 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 15 Mar 2021 03:47:04 +0000 (04:47 +0100)
commit6fd1b186d900acf4cef9d3c23ec2839022a46345
tree9f8d451e0e626c6c61485f5d954a3a22e0671d27
parentf8d354e821b268c23a6cd548b7154e55c3954496
thermal/drivers/cpuidle_cooling: Use device name instead of auto-numbering

Currently the naming of a cooling device is just a cooling technique
followed by a number. When there are multiple cooling devices using
the same technique, it is impossible to clearly identify the related
device as this one is just a number.

For instance:

 thermal-idle-0
 thermal-idle-1
 thermal-idle-2
 thermal-idle-3
 etc ...

The 'thermal' prefix is redundant with the subsystem namespace. This
patch removes the 'thermal prefix and changes the number by the device
name. So the naming above becomes:

 idle-cpu0
 idle-cpu1
 idle-cpu2
 idle-cpu3
 etc ...

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20210314111333.16551-4-daniel.lezcano@linaro.org
drivers/thermal/cpuidle_cooling.c