]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Move pec attribute to I2C device
authorGuenter Roeck <linux@roeck-us.net>
Fri, 20 May 2022 18:47:21 +0000 (11:47 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:17 +0000 (08:38 -0700)
commit7f0321391271276a451c99d8b8ddc5b41345f594
tree75ad5c0e7dc39e441fd9d86feef946dacb10c60c
parent1b68ebd3d24bb21b76bad3eec1cff5fe29f36122
hwmon: (pmbus) Move pec attribute to I2C device

Enabling and disabling PEC for PMBus devices is currently only supported
with a debugfs attribute, which requires debugfs to be enabled and is
thus less than perfect. Take the lm90 driver as example and add a 'pec'
attribute to the I2C device if both the I2C adapter and the PMBus device
support it. Remove the now obsolete 'pec' attribute from debugfs.

Cc: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/ABI/testing/sysfs-class-hwmon
Documentation/hwmon/pmbus-core.rst
drivers/hwmon/pmbus/pmbus_core.c