Re: [PATCH] i2c driver fixes for 2.6.0

Greg KH
2003-12-30T22:06:29Z

ChangeSet 1.1496.9.7, 2003/12/04 13:53:58-08:00, khali@linux-fr.org

[PATCH] I2C: add KT600 support to i2c-viapro driver

This patch adds support for the KT600 to the i2c-viapro driver. It was
confirmed to work by Lou, lm-sensors at fixit dot nospammail dot net in
this post:
http://archives.andrew.net.au/lm-sensors/msg05299.html

drivers/i2c/busses/Kconfig | 1 +
drivers/i2c/busses/i2c-viapro.c | 8 ++++++++
2 files changed, 9 insertions(+)

diff -Nru a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
--- a/drivers/i2c/busses/Kconfig Tue Dec 30 12:31:28 2003
+++ b/drivers/i2c/busses/Kconfig Tue Dec 30 12:31:28 2003
@@ -310,6 +310,7 @@
8233
8233A
8235
+ 8237

This driver can also be built as a module. If so, the module
will be called i2c-viapro.
diff -Nru a/drivers/i2c/busses/i2c-viapro.c b/drivers/i2c/busses/i2c-viapro.c
--- a/drivers/i2c/busses/i2c-viapro.c Tue Dec 30 12:31:28 2003
+++ b/drivers/i2c/busses/i2c-viapro.c Tue Dec 30 12:31:28 2003
@@ -29,6 +29,7 @@
8233
8233A (0x3147 and 0x3177)
8235
+ 8237
Note: we assume there can only be one device, with one SMBus interface.
*/

@@ -430,6 +431,13 @@
{
.vendor = PCI_VENDOR_ID_VIA,
.device = PCI_DEVICE_ID_VIA_8235,
+ .subvendor = PCI_ANY_ID,
+ .subdevice = PCI_ANY_ID,
+ .driver_data = SMBBA3
+ },
+ {
+ .vendor = PCI_VENDOR_ID_VIA,
+ .device = PCI_DEVICE_ID_VIA_8237,
.subvendor = PCI_ANY_ID,
.subdevice = PCI_ANY_ID,
.driver_data = SMBBA3