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 14:43:34 +0000 (14:43 +0000)
commit1635d4fc76a0cfc7fc7f4667dcb4e02e92e246cb
tree638e2c0817d17dad29ee1ce8f24977427e8bd852
parente292b266359d4ddb8d6aab91a33fe206b76bf22c
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