]> git.baikalelectronics.ru Git - kernel.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)
commit0938230c01734fc6f7eb480fc40eefe6b5280d92
tree016b3b1a16908fa445c5ff6dd31240c216d0ac68
parent979f1b7b0927a8f6a6173e86ddd45080fe55a465
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