Skip to contentSkip to conversation

S3C2410 missing I2C_CLASS_HWMON

PATCH New Ben Dooks 2 participants 2 messages May 19, 2005

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 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

-------------- next part --------------

drivers/i2c/busses/i2c-s3c2410.c +1 -0
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
@@ -569,6 +569,7 @@
 		.name			= "s3c2410-i2c",
 		.algo			= &s3c24xx_i2c_algorithm,
 		.retries		= 2,
+		.class			= I2C_CLASS_HWMON,
 	},
 };
 
Applied
#1 lore raw

PATCH 1/1 S3C2410 missing I2C_CLASS_HWMON

Quoted 5 lines · Ben Dooks

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

Applied, thanks.

greg k-h