]> git.baikalelectronics.ru Git - kernel.git/commit
thinkpad_acpi: Revert unintentional device attribute renaming
authorBjørn Mork <bjorn@mork.no>
Tue, 19 May 2015 17:45:03 +0000 (19:45 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 20 May 2015 09:18:12 +0000 (02:18 -0700)
commit3b89aaaac09315f6e804232921f83dcb804a027e
treeaba49a41e648cf5076964ed8a62d7d1d5f79248f
parentfdb2860dc51463f30791b379e591b1fb8b96b58f
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: 36893714e033 ("thinkpad_acpi: use DEVICE_ATTR_* macros")
Cc: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c