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)
commit002c6b545b85676539add33add8aa7f1f49cbfff
treeedf4b705ecf0454213b22782107c8edc6516c932
parent266cd5835947d08b7c963b6d9d9f15d9e481bd0a
hwmon: Add support for enable attributes to hwmon core

The hwmon ABI supports enable attributes since commit fb41a710f84e
("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