From: Arnaud Patard Date: Tue, 14 Aug 2007 16:37:14 +0000 (+0200) Subject: i2c-iop3xx: Set I2C_CLASS_HWMON to adapter class X-Git-Tag: MMI-PSA29.97-13-9~40770^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=432ca994bf7107e88916fd9606ca7402a4571359;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git i2c-iop3xx: Set I2C_CLASS_HWMON to adapter class In order to be able to use sensors on the IOP3xx SoCs, one needs to set the adapter class to I2C_CLASS_HWMON. Signed-off-by: Arnaud Patard Signed-off-by: Jean Delvare --- diff --git a/drivers/i2c/busses/i2c-iop3xx.c b/drivers/i2c/busses/i2c-iop3xx.c index 440342bc62e1..ace644e21b14 100644 --- a/drivers/i2c/busses/i2c-iop3xx.c +++ b/drivers/i2c/busses/i2c-iop3xx.c @@ -490,6 +490,7 @@ iop3xx_i2c_probe(struct platform_device *pdev) memcpy(new_adapter->name, pdev->name, strlen(pdev->name)); new_adapter->id = I2C_HW_IOP3XX; new_adapter->owner = THIS_MODULE; + new_adapter->class = I2C_CLASS_HWMON; new_adapter->dev.parent = &pdev->dev; new_adapter->nr = pdev->id;