Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 889ef45c authored by Jan Glauber's avatar Jan Glauber Committed by Wolfram Sang
Browse files

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: default avatarJan Glauber <jglauber@cavium.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 63a761ee
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;