From: Bjørn Mork Date: Tue, 19 May 2015 17:45:03 +0000 (+0200) Subject: thinkpad_acpi: Revert unintentional device attribute renaming X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~46^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fb73bc2c8301ad106df0e858e60875cd2ae95cb;p=pandora-kernel.git thinkpad_acpi: Revert unintentional device attribute renaming The conversion to DEVICE_ATTR_* macros failed to fixup a few cases where the old attribute names didn't match the show/store function names. Instead of renaming the functions, the attributes were renamed. This caused an unintentional API change. The hwmon required 'name' attribute were among the renamed attribute, causing libsensors to fail to detect the hwmon device at all. Fix by using the DEVICE_ATTR macro for these attributes, allowing the show/store functions to keep their system specific prefixes. Fixes: b4dd04ac6ef8 ("thinkpad_acpi: use DEVICE_ATTR_* macros") Cc: Bastien Nocera Signed-off-by: Bjørn Mork Acked-by: Henrique de Moraes Holschuh Signed-off-by: Darren Hart --- Reading git-diff-tree failed