i2c: new sysfs class "hwmon"
cover i2c: new sysfs class "hwmon"
Hi Greg:
Here's the hwmon patchset again; this time I would like you to consider applying it. The device class ID string is now chosen by the (chip) driver. That required a small change to the driver/core class code, which is the first patch. The third patch modifies all hwmon-type drivers, instead of just a couple. Also, thanks for your comments re: my previous patchset - I've addressed those here.
With these patches applied, 'tree -d /sys/class/hwmon' looks like this:
/sys/class/hwmon
`-- w83627thf-0
`-- device -> ../../../devices/platform/i2c-1/1-0290
Here is the diffstat:
drivers/Kconfig | 2 + drivers/Makefile | 1 drivers/base/class.c | 25 ++++++++++++- drivers/hwmon/Kconfig | 15 +++++++ drivers/hwmon/Makefile | 5 ++ drivers/hwmon/hwmon.c | 77 +++++++++++++++++++++++++++++++++++++++++ drivers/i2c/chips/adm1021.c | 15 +++++++ drivers/i2c/chips/adm1025.c | 15 +++++++ drivers/i2c/chips/adm1026.c | 14 +++++++ drivers/i2c/chips/adm1031.c | 15 +++++++ drivers/i2c/chips/adm9240.c | 16 ++++++++ drivers/i2c/chips/asb100.c | 17 +++++++++ drivers/i2c/chips/ds1621.c | 15 +++++++ drivers/i2c/chips/fscher.c | 15 +++++++ drivers/i2c/chips/fscpos.c | 15 +++++++ drivers/i2c/chips/gl518sm.c | 15 +++++++ drivers/i2c/chips/gl520sm.c | 15 +++++++ drivers/i2c/chips/it87.c | 16 +++++++- drivers/i2c/chips/lm63.c | 15 +++++++ drivers/i2c/chips/lm75.c | 14 +++++++ drivers/i2c/chips/lm77.c | 15 +++++++ drivers/i2c/chips/lm78.c | 15 +++++++ drivers/i2c/chips/lm80.c | 15 +++++++ drivers/i2c/chips/lm83.c | 15 +++++++ drivers/i2c/chips/lm85.c | 14 +++++++ drivers/i2c/chips/lm87.c | 15 +++++++ drivers/i2c/chips/lm90.c | 15 +++++++ drivers/i2c/chips/lm92.c | 16 +++++++- drivers/i2c/chips/max1619.c | 16 +++++++- drivers/i2c/chips/pc87360.c | 15 +++++++ drivers/i2c/chips/sis5595.c | 17 ++++++++- drivers/i2c/chips/smsc47b397.c | 15 +++++++ drivers/i2c/chips/smsc47m1.c | 16 ++++++++ drivers/i2c/chips/via686a.c | 23 ++++++++++-- drivers/i2c/chips/w83627ehf.c | 15 +++++++ drivers/i2c/chips/w83627hf.c | 15 +++++++ drivers/i2c/chips/w83781d.c | 23 ++++++++++++ drivers/i2c/chips/w83l785ts.c | 15 +++++++ include/linux/device.h | 7 +++ include/linux/hwmon.h | 24 ++++++++++++ include/linux/i2c.h | 1 41 files changed, 647 insertions(+), 12 deletions(-)
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
cover i2c: new sysfs class
Quoted 4 lines · Mark M. Hoffman
With these patches applied, 'tree -d
/sys/class/hwmon' looks like this:
/sys/class/hwmon
`-- w83627thf-0
^^-- is it possible / make any sense, to not append anything
for the first (usually only) device? eg. "", "-1", "-2"...
Quoted 1 line
`-- device -> ../../../devices/platform/i2c-1/1-0290
--Grant.
[lm-sensors] Re: [PATCH 2.6.12-rc5-mm1 0/3] i2c: new sysfs class
In reply to Mark M. HoffmanQuoted 8 lines · Mark M. Hoffman
Hi Greg:
Here's the hwmon patchset again; this time I would like you to consider applying it. The device class ID string is now chosen by the (chip) driver. That required a small change to the driver/core class code, which is the first patch. The third patch modifies all hwmon-type drivers, instead of just a couple. Also, thanks for your comments re: my previous patchset - I've addressed those here.
Nice, I've added them to my tree, and will show up in the next -mm releases. If you want to send me updated patches, just let me know. If you want to send add-on patches, also, feel free to. I'll hold off sending this to Linus till after 2.6.12 is out, and after you feel more comfortable with the code.
I do have a few issues, and will reply to the patches.
thanks,
greg k-h