I2C: port smsc47m1 to 2.6
PATCH 1/1 I2C: port smsc47m1 to 2.6
Hi Greg,
Here is my port of the smsc47m1 i2c hardware monitoring driver to Linux 2.6. The original driver was written by Mark D. Studebaker, and my work is based on a preliminary port by Gabriele Gorla, who came in with an almost finished driver, but vanished before cleaning it up. I finished the job and improved things a bit. Credits go to Ivars Strazdins and Cassio Freitas for testing the driver (having no hardware, I couldn't test the code myself).
Please consider for inclusion into your kernel tree.
I plan to add an automatic fan clock divider selection feature at some later point in the future. But one thing at a time, let's begin with this working piece of code.
Thanks.
drivers/i2c/chips/Kconfig renamed from drivers/i2c/chips.orig/Kconfig +13 -0
@@ -191,6 +191,19 @@ This driver can also be built as a module. If so, the module will be called max1619. +config SENSORS_SMSC47M1 + tristate "SMSC LPC47M10x and compatibles" + depends on I2C && EXPERIMENTAL + select I2C_SENSOR + select I2C_ISA + help + If you say yes here you get support for the integrated fan + monitoring and control capabilities of the SMSC LPC47B27x, + LPC47M10x, LPC47M13x and LPC47M14x chips. + + This driver can also be built as a module. If so, the module + will be called smsc47m1. + config SENSORS_VIA686A tristate "VIA686A" depends on I2C && EXPERIMENTAL
drivers/i2c/chips/Makefile renamed from drivers/i2c/chips.orig/Makefile +1 -0
@@ -26,6 +26,7 @@ obj-$(CONFIG_SENSORS_PCF8574) += pcf8574.o obj-$(CONFIG_SENSORS_PCF8591) += pcf8591.o obj-$(CONFIG_SENSORS_RTC8564) += rtc8564.o +obj-$(CONFIG_SENSORS_SMSC47M1) += smsc47m1.o obj-$(CONFIG_SENSORS_VIA686A) += via686a.o obj-$(CONFIG_SENSORS_W83L785TS) += w83l785ts.o
drivers/i2c/chips/smsc47m1.c renamed from drivers/i2c/chips.orig/smsc47m1.c +579 -0
579 lines not on this page · raw message
Signature · 2 lines
Jean "Khali" Delvare http://khali.linux-fr.org/
PATCH 1/1 I2C: port smsc47m1 to 2.6
Hi Jean,
Quoted 1 line
Please consider for inclusion into your kernel tree.
Yuuuuhhuuuu. :-D
How will you know if the code was accepted by Greg? Thank you.
Cheers,
C?ssio Freitas
PATCH 1/1 I2C: port smsc47m1 to 2.6
In reply to Jean DelvareQuoted 1 line · cgfreita
How will you know if the code was accepted by Greg?
Greg will let him know when he accepts it :)
I'll probably get to it on Monday or Tuesday, depending on my workload...
thanks,
greg k-h
Greg KH
AppliedPATCH 1/1 I2C: port smsc47m1 to 2.6
In reply to Jean DelvareQuoted 11 lines · Jean Delvare
Hi Greg,
Here is my port of the smsc47m1 i2c hardware monitoring driver to Linux 2.6. The original driver was written by Mark D. Studebaker, and my work is based on a preliminary port by Gabriele Gorla, who came in with an almost finished driver, but vanished before cleaning it up. I finished the job and improved things a bit. Credits go to Ivars Strazdins and Cassio Freitas for testing the driver (having no hardware, I couldn't test the code myself).
Please consider for inclusion into your kernel tree.
Applied, thanks.
greg k-h