[PATCH] I2C: S3C2410 missing I2C_CLASS_HWMON

From: Greg KH
Date: Fri Mar 04 2005 - 16:07:24 EST


ChangeSet 1.2109, 2005/03/02 15:02:43-08:00, ben-linux@xxxxxxxxx

[PATCH] I2C: S3C2410 missing I2C_CLASS_HWMON

None of the standard sensor drivers currently recognise the s3c24xx
I2C controller as it does not have I2C_CLASS_HWMON set in the
adapter class field.

The attached patch initialises the adapter class to I2C_CLASS_HWMON

Signed-off-by: Ben Dooks <ben-linux@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>


drivers/i2c/busses/i2c-s3c2410.c | 1 +
1 files changed, 1 insertion(+)


diff -Nru a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c
--- a/drivers/i2c/busses/i2c-s3c2410.c 2005-03-04 12:23:28 -08:00
+++ b/drivers/i2c/busses/i2c-s3c2410.c 2005-03-04 12:23:28 -08:00
@@ -569,6 +569,7 @@
.name = "s3c2410-i2c",
.algo = &s3c24xx_i2c_algorithm,
.retries = 2,
+ .class = I2C_CLASS_HWMON,
},
};


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/