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: v2.6.23-rc4~136^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=432ca994bf7107e88916fd9606ca7402a4571359;p=linux-2.6-omap-h63xx.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 440342bc62e..ace644e21b1 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;