Skip to content

Commit 073e58b

Browse files
hkallweitAndi Shyti
authored andcommitted
i2c: mux: gpio: remove support for class-based device instantiation
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>
1 parent 780868f commit 073e58b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/i2c/muxes/i2c-mux-gpio.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,8 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev)
206206

207207
for (i = 0; i < mux->data.n_values; i++) {
208208
u32 nr = mux->data.base_nr ? (mux->data.base_nr + i) : 0;
209-
unsigned int class = mux->data.classes ? mux->data.classes[i] : 0;
210209

211-
ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class);
210+
ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], 0);
212211
if (ret)
213212
goto add_adapter_failed;
214213
}

include/linux/platform_data/i2c-mux-gpio.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818
* @values: Array of bitmasks of GPIO settings (low/high) for each
1919
* position
2020
* @n_values: Number of multiplexer positions (busses to instantiate)
21-
* @classes: Optional I2C auto-detection classes
2221
* @idle: Bitmask to write to MUX when idle or GPIO_I2CMUX_NO_IDLE if not used
2322
*/
2423
struct i2c_mux_gpio_platform_data {
2524
int parent;
2625
int base_nr;
2726
const unsigned *values;
2827
int n_values;
29-
const unsigned *classes;
3028
unsigned idle;
3129
};
3230

0 commit comments

Comments
 (0)