Commit a8355235 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Wolfram Sang

i2c: mux: reg: Remove class-based device auto-detection support

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/a22978a4-88e4-46f4-b71c-032b22321599@gmail.com/Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 94959c0e
...@@ -159,7 +159,6 @@ static int i2c_mux_reg_probe(struct platform_device *pdev) ...@@ -159,7 +159,6 @@ static int i2c_mux_reg_probe(struct platform_device *pdev)
struct regmux *mux; struct regmux *mux;
struct i2c_adapter *parent; struct i2c_adapter *parent;
struct resource *res; struct resource *res;
unsigned int class;
int i, ret, nr; int i, ret, nr;
mux = devm_kzalloc(&pdev->dev, sizeof(*mux), GFP_KERNEL); mux = devm_kzalloc(&pdev->dev, sizeof(*mux), GFP_KERNEL);
...@@ -213,9 +212,8 @@ static int i2c_mux_reg_probe(struct platform_device *pdev) ...@@ -213,9 +212,8 @@ static int i2c_mux_reg_probe(struct platform_device *pdev)
for (i = 0; i < mux->data.n_values; i++) { for (i = 0; i < mux->data.n_values; i++) {
nr = mux->data.base_nr ? (mux->data.base_nr + i) : 0; 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) if (ret)
goto err_del_mux_adapters; goto err_del_mux_adapters;
} }
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* @n_values: Number of multiplexer channels * @n_values: Number of multiplexer channels
* @little_endian: Indicating if the register is in little endian * @little_endian: Indicating if the register is in little endian
* @write_only: Reading the register is not allowed by hardware * @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: Value to write to mux when idle
* @idle_in_use: indicate if idle value is in use * @idle_in_use: indicate if idle value is in use
* @reg: Virtual address of the register to switch channel * @reg: Virtual address of the register to switch channel
...@@ -30,7 +29,6 @@ struct i2c_mux_reg_platform_data { ...@@ -30,7 +29,6 @@ struct i2c_mux_reg_platform_data {
int n_values; int n_values;
bool little_endian; bool little_endian;
bool write_only; bool write_only;
const unsigned int *classes;
u32 idle; u32 idle;
bool idle_in_use; bool idle_in_use;
void __iomem *reg; void __iomem *reg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment