Commit 780868fc authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Andi Shyti

i2c: i801: Remove usage of I2C_CLASS_SPD

Only remaining client driver supporting I2C_CLASS_SPD is jc42. This
type of thermal sensor can be found on several DDR3/DDR4 modules.
i2c_register_spd() instantiates also such thermal sensor i2c devices.
Since 893fef0b ("i2c: i801: Call i2c_register_spd for muxed child
segments") i2c_register_spd() is called also for the remaining use case,
systems with muxed SMBUS segments for SPD EEPROMs.
Therefore I2C_CLASS_SPD class-based instantiation isn't needed any longer
in this driver, so remove it.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 864d1d83
...@@ -264,7 +264,6 @@ struct i801_mux_config { ...@@ -264,7 +264,6 @@ struct i801_mux_config {
char *gpio_chip; char *gpio_chip;
unsigned values[3]; unsigned values[3];
int n_values; int n_values;
unsigned classes[3];
unsigned gpios[2]; /* Relative to gpio_chip->base */ unsigned gpios[2]; /* Relative to gpio_chip->base */
int n_gpios; int n_gpios;
}; };
...@@ -1315,7 +1314,6 @@ static struct i801_mux_config i801_mux_config_asus_z8_d12 = { ...@@ -1315,7 +1314,6 @@ static struct i801_mux_config i801_mux_config_asus_z8_d12 = {
.gpio_chip = "gpio_ich", .gpio_chip = "gpio_ich",
.values = { 0x02, 0x03 }, .values = { 0x02, 0x03 },
.n_values = 2, .n_values = 2,
.classes = { I2C_CLASS_SPD, I2C_CLASS_SPD },
.gpios = { 52, 53 }, .gpios = { 52, 53 },
.n_gpios = 2, .n_gpios = 2,
}; };
...@@ -1324,7 +1322,6 @@ static struct i801_mux_config i801_mux_config_asus_z8_d18 = { ...@@ -1324,7 +1322,6 @@ static struct i801_mux_config i801_mux_config_asus_z8_d18 = {
.gpio_chip = "gpio_ich", .gpio_chip = "gpio_ich",
.values = { 0x02, 0x03, 0x01 }, .values = { 0x02, 0x03, 0x01 },
.n_values = 3, .n_values = 3,
.classes = { I2C_CLASS_SPD, I2C_CLASS_SPD, I2C_CLASS_SPD },
.gpios = { 52, 53 }, .gpios = { 52, 53 },
.n_gpios = 2, .n_gpios = 2,
}; };
...@@ -1434,7 +1431,6 @@ static void i801_add_mux(struct i801_priv *priv) ...@@ -1434,7 +1431,6 @@ static void i801_add_mux(struct i801_priv *priv)
gpio_data.parent = priv->adapter.nr; gpio_data.parent = priv->adapter.nr;
gpio_data.values = mux_config->values; gpio_data.values = mux_config->values;
gpio_data.n_values = mux_config->n_values; gpio_data.n_values = mux_config->n_values;
gpio_data.classes = mux_config->classes;
gpio_data.idle = I2C_MUX_GPIO_NO_IDLE; gpio_data.idle = I2C_MUX_GPIO_NO_IDLE;
/* Register GPIO descriptor lookup table */ /* Register GPIO descriptor lookup table */
......
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