mbox series

[0/2] hwmon: convert w83627ehf to new interface

Message ID 20191124202030.45360-1-linux@treblig.org (mailing list archive)
Headers show
Series hwmon: convert w83627ehf to new interface | expand

Message

Dr. David Alan Gilbert Nov. 24, 2019, 8:20 p.m. UTC
Convert w83627ehf to the with_info interface;
while we're here add intrusion%d_ templates since they're used
by a bunch of different devices.

The _visible functions try and follow the same structure as the existing
device_create_file loops and structures.

The in*input,fan*input and temp*input all look sane to me; and I've
tried writing to a bunch of the files; but the pwm ones I don't have too
much of an idea of.

This has been tested on my P55M Pro which has a W83667HG-B;
it would be good to get some testing from people with other devices
supported by the driver.

Dave

Dr. David Alan Gilbert (2):
  hwmon: Add intrusion templates
  hwmon: (w83627ehf) convert to with_info interface

 drivers/hwmon/hwmon.c     |    9 +-
 drivers/hwmon/w83627ehf.c | 1429 ++++++++++++++++---------------------
 include/linux/hwmon.h     |    8 +
 3 files changed, 646 insertions(+), 800 deletions(-)