Commit ccf14452 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: default avatarIdo Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/77b5ab8e-20f2-4310-bd89-57db99e2f53b@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6a571895
...@@ -708,7 +708,6 @@ static const struct i2c_device_id mlxsw_m_i2c_id[] = { ...@@ -708,7 +708,6 @@ static const struct i2c_device_id mlxsw_m_i2c_id[] = {
static struct i2c_driver mlxsw_m_i2c_driver = { static struct i2c_driver mlxsw_m_i2c_driver = {
.driver.name = "mlxsw_minimal", .driver.name = "mlxsw_minimal",
.class = I2C_CLASS_HWMON,
.id_table = mlxsw_m_i2c_id, .id_table = mlxsw_m_i2c_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment