]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (core) Make is_visible callback truly mandatory
authorGuenter Roeck <linux@roeck-us.net>
Mon, 17 Oct 2016 00:06:20 +0000 (17:06 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 10 Dec 2016 05:54:20 +0000 (21:54 -0800)
commit239552f495b91fc8f3fba4b5094233e053d265cb
tree956132667566b4ea6210e583f5effc2dde1bdccf
parentaf1bd36c06b5fad33baa7ee16820226efbd96cd9
hwmon: (core) Make is_visible callback truly mandatory

The is_visible callback provides the sysfs attribute mode and is thus
truly mandatory as documented. Check it once at registration and remove
other checks for its existence.

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