Skip to contentSkip to conversation

S3C2410 I2C - missing I2C_CLASS_HWMON

PATCH Ben Dooks 3 participants 3 messages May 19, 2005

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

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

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,
 	},
 };
 
#1 lore raw

Hi Ben,

Quoted 5 lines

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

Looks OK to me, but you seemingly forgot to CC: Greg KH. I'd also suggest that you somehow mention in the subject that there is a patch for him to catch in there.

Thanks,
--
Jean Delvare

#2 lore raw
In reply to Ben Dooks
Quoted 7 lines · Jean Delvare

Hi Ben,

Quoted 4 lines

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.

Quoted 5 lines
Quoted 1 line

This patch initialised the adapter with I2C_CLASS_HWMON

Looks OK to me, but you seemingly forgot to CC: Greg KH. I'd also suggest that you somehow mention in the subject that there is a patch for him to catch in there.

thanks for noticing, will repost.