Skip to content

Commit c3d0868

Browse files
committed
i2c: i801: Remove usage of I2C_CLASS_SPD
JIRA: https://issues.redhat.com/browse/RHEL-47426 commit 780868f Author: Heiner Kallweit <hkallweit1@gmail.com> Date: Mon Apr 15 22:47:55 2024 +0200 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> Signed-off-by: David Arcari <darcari@redhat.com>
1 parent c82cd8f commit c3d0868

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
@@ -266,7 +266,6 @@ struct i801_mux_config {
266266
char *gpio_chip;
267267
unsigned values[3];
268268
int n_values;
269-
unsigned classes[3];
270269
unsigned gpios[2]; /* Relative to gpio_chip->base */
271270
int n_gpios;
272271
};
@@ -1319,7 +1318,6 @@ static struct i801_mux_config i801_mux_config_asus_z8_d12 = {
13191318
.gpio_chip = "gpio_ich",
13201319
.values = { 0x02, 0x03 },
13211320
.n_values = 2,
1322-
.classes = { I2C_CLASS_SPD, I2C_CLASS_SPD },
13231321
.gpios = { 52, 53 },
13241322
.n_gpios = 2,
13251323
};
@@ -1328,7 +1326,6 @@ static struct i801_mux_config i801_mux_config_asus_z8_d18 = {
13281326
.gpio_chip = "gpio_ich",
13291327
.values = { 0x02, 0x03, 0x01 },
13301328
.n_values = 3,
1331-
.classes = { I2C_CLASS_SPD, I2C_CLASS_SPD, I2C_CLASS_SPD },
13321329
.gpios = { 52, 53 },
13331330
.n_gpios = 2,
13341331
};
@@ -1438,7 +1435,6 @@ static void i801_add_mux(struct i801_priv *priv)
14381435
gpio_data.parent = priv->adapter.nr;
14391436
gpio_data.values = mux_config->values;
14401437
gpio_data.n_values = mux_config->n_values;
1441-
gpio_data.classes = mux_config->classes;
14421438
gpio_data.idle = I2C_MUX_GPIO_NO_IDLE;
14431439

14441440
/* Register GPIO descriptor lookup table */

0 commit comments

Comments
 (0)