]> Git Repo - linux.git/commitdiff
i2c: mux: reg: Remove class-based device auto-detection support
authorHeiner Kallweit <[email protected]>
Wed, 8 Nov 2023 06:38:07 +0000 (07:38 +0100)
committerWolfram Sang <[email protected]>
Thu, 18 Jan 2024 20:10:43 +0000 (21:10 +0100)
Legacy class-based device auto-detection shouldn't be used in new code.
Therefore remove support in i2c-mux-reg as long as we don't have a
user of this feature yet.

Link: https://lore.kernel.org/linux-i2c/[email protected]/
Signed-off-by: Heiner Kallweit <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/muxes/i2c-mux-reg.c
include/linux/platform_data/i2c-mux-reg.h

index 9efc1ed01577b1987f3493c686bd8133eb31fcdb..8489971babd37b55ef794ebd8ec8446d9797acca 100644 (file)
@@ -159,7 +159,6 @@ static int i2c_mux_reg_probe(struct platform_device *pdev)
        struct regmux *mux;
        struct i2c_adapter *parent;
        struct resource *res;
-       unsigned int class;
        int i, ret, nr;
 
        mux = devm_kzalloc(&pdev->dev, sizeof(*mux), GFP_KERNEL);
@@ -213,9 +212,8 @@ static int i2c_mux_reg_probe(struct platform_device *pdev)
 
        for (i = 0; i < mux->data.n_values; i++) {
                nr = mux->data.base_nr ? (mux->data.base_nr + i) : 0;
-               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 err_del_mux_adapters;
        }
index 2543c2a1c9aef76717fb539f4c94d2b59e0b7b33..e2e8957683116fd3c3f254639f082d3f0f26b27b 100644 (file)
@@ -17,7 +17,6 @@
  * @n_values: Number of multiplexer channels
  * @little_endian: Indicating if the register is in little endian
  * @write_only: Reading the register is not allowed by hardware
- * @classes: Optional I2C auto-detection classes
  * @idle: Value to write to mux when idle
  * @idle_in_use: indicate if idle value is in use
  * @reg: Virtual address of the register to switch channel
@@ -30,7 +29,6 @@ struct i2c_mux_reg_platform_data {
        int n_values;
        bool little_endian;
        bool write_only;
-       const unsigned int *classes;
        u32 idle;
        bool idle_in_use;
        void __iomem *reg;
This page took 0.060764 seconds and 4 git commands to generate.