mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-05-30 19:18:31 +00:00
i2c: thunderx: Enable HWMON class probing
Set I2C_CLASS_HWMON to enable automatic probing of BMC devices by the ipmi-ssif driver. Signed-off-by: Jan Glauber <jglauber@cavium.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
63a761eef5
commit
889ef45cd4
1 changed files with 1 additions and 0 deletions
|
@ -211,6 +211,7 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev,
|
|||
|
||||
i2c->adap = thunderx_i2c_ops;
|
||||
i2c->adap.retries = 5;
|
||||
i2c->adap.class = I2C_CLASS_HWMON;
|
||||
i2c->adap.bus_recovery_info = &octeon_i2c_recovery_info;
|
||||
i2c->adap.dev.parent = dev;
|
||||
i2c->adap.dev.of_node = pdev->dev.of_node;
|
||||
|
|
Loading…
Add table
Reference in a new issue