]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: Add support for enable attributes to hwmon core
authorGuenter Roeck <linux@roeck-us.net>
Tue, 17 Jul 2018 17:17:19 +0000 (10:17 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 23 Jan 2020 21:15:09 +0000 (13:15 -0800)
commit16f40f2373ec469cbc672cba7da2f8def2690a01
treeedf4b705ecf0454213b22782107c8edc6516c932
parent8742ddca269784be9ec7f47bc5ee41dcfa42b7a7
hwmon: Add support for enable attributes to hwmon core

The hwmon ABI supports enable attributes since commit f9454cb0a832
("hwmon: Document the sensor enable attribute"), but did not
add support for those attributes to the hwmon core. Do that now.

Since the enable attributes are logically the most important attributes,
they are added as first attribute to the attribute list. Move
hwmon_in_enable from last to first place for consistency.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hwmon.c
include/linux/hwmon.h