diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-04-15 22:48:42 +0200 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2024-04-23 00:13:57 +0200 |
commit | d20c6d1437279495c8c0852148d13e7149913c32 (patch) | |
tree | 35eed99dc192523a0e92b21e4ae3006ee9cbbaa9 | |
parent | 0cf232b5242b122b23e1feeb7053408dd5adcd69 (diff) | |
download | renesas-drivers-d20c6d1437279495c8c0852148d13e7149913c32.tar.gz |
i2c: mux: gpio: remove support for class-based device instantiation
Notice: this object is not reachable from any branch.
i801 as only user of gpio i2c mux removed support for class-based device
instantiation on muxed busses. Class-based device instantiation is a
legacy mechanism and shouldn't be used in new code, therefore remove
support also here.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Notice: this object is not reachable from any branch.
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-gpio.c | 3 | ||||
-rw-r--r-- | include/linux/platform_data/i2c-mux-gpio.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 6b979a0a6ab86a..0fbb33a3d518ce 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c @@ -206,9 +206,8 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev) for (i = 0; i < mux->data.n_values; i++) { u32 nr = mux->data.base_nr ? (mux->data.base_nr + i) : 0; - unsigned int class = mux->data.classes ? mux->data.classes[i] : 0; - ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); + ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], 0); if (ret) goto add_adapter_failed; } diff --git a/include/linux/platform_data/i2c-mux-gpio.h b/include/linux/platform_data/i2c-mux-gpio.h index 5e4c2c272a7348..816a4cd3ccb555 100644 --- a/include/linux/platform_data/i2c-mux-gpio.h +++ b/include/linux/platform_data/i2c-mux-gpio.h @@ -18,7 +18,6 @@ * @values: Array of bitmasks of GPIO settings (low/high) for each * position * @n_values: Number of multiplexer positions (busses to instantiate) - * @classes: Optional I2C auto-detection classes * @idle: Bitmask to write to MUX when idle or GPIO_I2CMUX_NO_IDLE if not used */ struct i2c_mux_gpio_platform_data { @@ -26,7 +25,6 @@ struct i2c_mux_gpio_platform_data { int base_nr; const unsigned *values; int n_values; - const unsigned *classes; unsigned idle; }; |