S3C2410 I2C - missing I2C_CLASS_HWMON

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

 



None of the standard sensor drivers currently recognise the s3c2410
i2c controller as it does not have I2C_CLASS_HWMON set in it's
adapter class field.

This patch initialised the adapter with I2C_CLASS_HWMON

Signed-off-by: Ben Dooks <ben-linux at fluff.org>

diff -urN -X ../dontdiff linux-2.6.11-rc4-bk8/drivers/i2c/busses/i2c-s3c2410.c linux-2.6.11-rc4-bk8-tmp101/drivers/i2c/busses/i2c-s3c2410.c
--- linux-2.6.11-rc4-bk8/drivers/i2c/busses/i2c-s3c2410.c	2005-01-04 10:57:49.000000000 +0000
+++ linux-2.6.11-rc4-bk8-tmp101/drivers/i2c/busses/i2c-s3c2410.c	2005-02-21 10:52:12.000000000 +0000
@@ -569,6 +569,7 @@
 		.name			= "s3c2410-i2c",
 		.algo			= &s3c24xx_i2c_algorithm,
 		.retries		= 2,
+		.class			= I2C_CLASS_HWMON,
 	},
 };
 



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

  Powered by Linux