Skip to content

Commit

Permalink
i2c-iop3xx: Set I2C_CLASS_HWMON to adapter class
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
  • Loading branch information
thertp authored and Jean Delvare committed Aug 14, 2007
1 parent 25da383 commit 432ca99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-iop3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 432ca99

Please sign in to comment.