PM / devfreq: Add new name attribute for sysfs
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 5 Nov 2019 09:18:03 +0000 (18:18 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 21:22:40 +0000 (21:22 +0000)
commitda1321fc1405e24b7ffb3fac670b67ae700bc5ce
treeb374455ff84c671038623b8b5e47a9a77473e769
parente9fac00465791b62eaf3bad5c36f85e59958c651
PM / devfreq: Add new name attribute for sysfs

commit 2fee1a7cc6b1ce6634bb0f025be2c94a58dfa34d upstream.

The commit 4585fbcb5331 ("PM / devfreq: Modify the device name as devfreq(X) for
sysfs") changed the node name to devfreq(x). After this commit, it is not
possible to get the device name through /sys/class/devfreq/devfreq(X)/*.

Add new name attribute in order to get device name.

Cc: stable@vger.kernel.org
Fixes: 4585fbcb5331 ("PM / devfreq: Modify the device name as devfreq(X) for sysfs")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-class-devfreq
drivers/devfreq/devfreq.c