mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
25da383d26
commit
432ca994bf
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue