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.
Unified · Split
| @@ -206,9 +206,8 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev) · 205 unmodified lines | ||
| 206 | 206 | |
| 207 | 207 | for (i = 0; i < mux->data.n_values; i++) { |
| 208 | 208 | u32 nr = mux->data.base_nr ? (mux->data.base_nr + i) : 0; |
| 209 | − unsigned int class = mux->data.classes ? mux->data.classes[i] : 0; | |
| 210 | 209 | |
| 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); | |
| 212 | 211 | if (ret) |
| 213 | 212 | goto add_adapter_failed; |
| 214 | 213 | } |
| @@ -18,7 +18,6 @@ · 17 unmodified lines | ||
| 18 | 18 | * @values: Array of bitmasks of GPIO settings (low/high) for each |
| 19 | 19 | * position |
| 20 | 20 | * @n_values: Number of multiplexer positions (busses to instantiate) |
| 21 | − * @classes: Optional I2C auto-detection classes | |
| 22 | 21 | * @idle: Bitmask to write to MUX when idle or GPIO_I2CMUX_NO_IDLE if not used |
| 23 | 22 | */ |
| 24 | 23 | struct i2c_mux_gpio_platform_data { |
| @@ -26,7 +25,6 @@ struct i2c_mux_gpio_platform_data { · 1 unmodified line | ||
| 26 | 25 | int base_nr; |
| 27 | 26 | const unsigned *values; |
| 28 | 27 | int n_values; |
| 29 | − const unsigned *classes; | |
| 30 | 28 | unsigned idle; |
| 31 | 29 | }; |
| 32 | 30 | |