[PATCH] hwmon: (jc42) Change I2C detection class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While the JC42-compatible chips are temperature sensors, I2C_CLASS_SPD
makes more sense because these chips always live on memory modules.

Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
---
Guenter, what do you think?

 drivers/hwmon/jc42.c |    2 +-
 include/linux/i2c.h  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.39-rc3.orig/drivers/hwmon/jc42.c	2011-03-15 22:52:51.000000000 +0100
+++ linux-2.6.39-rc3/drivers/hwmon/jc42.c	2011-04-16 09:31:47.000000000 +0200
@@ -213,7 +213,7 @@ static const struct dev_pm_ops jc42_dev_
 
 /* This is the driver that will be inserted */
 static struct i2c_driver jc42_driver = {
-	.class		= I2C_CLASS_HWMON,
+	.class		= I2C_CLASS_SPD,
 	.driver = {
 		.name	= "jc42",
 		.pm = JC42_DEV_PM_OPS,
--- linux-2.6.39-rc3.orig/include/linux/i2c.h	2011-04-15 18:08:30.000000000 +0200
+++ linux-2.6.39-rc3/include/linux/i2c.h	2011-04-16 09:48:50.000000000 +0200
@@ -400,7 +400,7 @@ void i2c_unlock_adapter(struct i2c_adapt
 /* i2c adapter classes (bitmask) */
 #define I2C_CLASS_HWMON		(1<<0)	/* lm_sensors, ... */
 #define I2C_CLASS_DDC		(1<<3)	/* DDC bus on graphics adapters */
-#define I2C_CLASS_SPD		(1<<7)	/* SPD EEPROMs and similar */
+#define I2C_CLASS_SPD		(1<<7)	/* Memory modules */
 
 /* Internal numbers to terminate lists */
 #define I2C_CLIENT_END		0xfffeU


-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux