diff options
author | Arnaud Patard <arnaud.patard@rtp-net.org> | 2007-08-14 16:37:14 (GMT) |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-08-14 16:37:14 (GMT) |
commit | 432ca994bf7107e88916fd9606ca7402a4571359 (patch) | |
tree | 3b5f455abece510c33f5cf03636f91e46836f6cb /drivers/i2c/busses/i2c-iop3xx.c | |
parent | 25da383d26a1dcca4f0205769a24e5eac79c6d35 (diff) | |
download | linux-432ca994bf7107e88916fd9606ca7402a4571359.tar.xz |
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 <arnaud.patard@rtp-net.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-iop3xx.c')
-rw-r--r-- | drivers/i2c/busses/i2c-iop3xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-iop3xx.c b/drivers/i2c/busses/i2c-iop3xx.c index 440342b..ace644e 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; |