Skip to content

Commit ccf1445

Browse files
hkallweitkuba-moo
authored andcommitted
mlxsw: remove I2C_CLASS_HWMON from drivers w/o detect and address_list
Class-based I2C probing requires detect() and address_list to be set in the I2C client driver, see checks in i2c_detect(). It's misleading to declare I2C_CLASS_HWMON support if this precondition isn't met. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 6a57189 commit ccf1445

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/minimal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,6 @@ static const struct i2c_device_id mlxsw_m_i2c_id[] = {
708708

709709
static struct i2c_driver mlxsw_m_i2c_driver = {
710710
.driver.name = "mlxsw_minimal",
711-
.class = I2C_CLASS_HWMON,
712711
.id_table = mlxsw_m_i2c_id,
713712
};
714713

0 commit comments

Comments
 (0)