]> 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)
commited6b9f958ba6df8c0a32f56d3a4614f45640c98c
treeedf4b705ecf0454213b22782107c8edc6516c932
parent6ac09d2e9f273656a2416f2899e9aa3bbea3ce03
hwmon: Add support for enable attributes to hwmon core

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