thermal/drivers/devfreq_cooling: Use device name instead of auto-numbering
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 14 Mar 2021 11:13:31 +0000 (12:13 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 15 Mar 2021 03:47:04 +0000 (04:47 +0100)
commitf8d354e821b268c23a6cd548b7154e55c3954496
treeba3ae1ecdfce2756f6f1a05edf93d80fb3595719
parentef37d1f9acb57b7a5993e93ae582ba5f4108919e
thermal/drivers/devfreq_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-devfreq-0
 thermal-devfreq-1
 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:

 devfreq-5000000.gpu
 devfreq-1d84000.ufshc
 etc ...

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20210314111333.16551-3-daniel.lezcano@linaro.org
drivers/thermal/devfreq_cooling.c