Skip to content

Commit 780868f

Browse files
hkallweitAndi Shyti
authored andcommitted
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 893fef0 ("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: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 864d1d8 commit 780868f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/i2c/busses/i2c-i801.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ struct i801_mux_config {
264264
char *gpio_chip;
265265
unsigned values[3];
266266
int n_values;
267-
unsigned classes[3];
268267
unsigned gpios[2]; /* Relative to gpio_chip->base */
269268
int n_gpios;
270269
};
@@ -1315,7 +1314,6 @@ static struct i801_mux_config i801_mux_config_asus_z8_d12 = {
13151314
.gpio_chip = "gpio_ich",
13161315
.values = { 0x02, 0x03 },
13171316
.n_values = 2,
1318-
.classes = { I2C_CLASS_SPD, I2C_CLASS_SPD },
13191317
.gpios = { 52, 53 },
13201318
.n_gpios = 2,
13211319
};
@@ -1324,7 +1322,6 @@ static struct i801_mux_config i801_mux_config_asus_z8_d18 = {
13241322
.gpio_chip = "gpio_ich",
13251323
.values = { 0x02, 0x03, 0x01 },
13261324
.n_values = 3,
1327-
.classes = { I2C_CLASS_SPD, I2C_CLASS_SPD, I2C_CLASS_SPD },
13281325
.gpios = { 52, 53 },
13291326
.n_gpios = 2,
13301327
};
@@ -1434,7 +1431,6 @@ static void i801_add_mux(struct i801_priv *priv)
14341431
gpio_data.parent = priv->adapter.nr;
14351432
gpio_data.values = mux_config->values;
14361433
gpio_data.n_values = mux_config->n_values;
1437-
gpio_data.classes = mux_config->classes;
14381434
gpio_data.idle = I2C_MUX_GPIO_NO_IDLE;
14391435

14401436
/* Register GPIO descriptor lookup table */

0 commit comments

Comments
 (0)