]> asedeno.scripts.mit.edu Git - linux.git/commit
pmbus: support for custom sysfs attributes
authorkrzysztof.adamski@nokia.com <krzysztof.adamski@nokia.com>
Mon, 15 Apr 2019 21:44:05 +0000 (14:44 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commit991d679951f0df27db170036080746b84115e1e7
tree016b3b1a16908fa445c5ff6dd31240c216d0ac68
parent9f00995e4eb293679597d76462fec2ce152e3500
pmbus: support for custom sysfs attributes

This patch makes it possible to pass custom struct attribute_group array
via the pmbus_driver_info struct so that those can be added to the
attribute groups passed to hwmon_device_register_with_groups().

This makes it possible to register custom sysfs attributes by PMBUS
drivers similar to how you can do this with most other busses/classes.

Signed-off-by: Krzysztof Adamski <krzysztof.adamski@nokia.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c