A remove callback that does nothing has the same semantic (apart from a
debug output) as no such callback at all as i2c_device_remove() just does:
if (driver->remove) {
dev_dbg(dev, "remove\n");
driver->remove(client);
}
Remove these useless callbacks.
While touching the driver structs, unify indention.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/3afd8230634dd68ac7c1885ee2b01da377349f89.1778692164.git.u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
&nau8825_dai, 1);
}
-static void nau8825_i2c_remove(struct i2c_client *client)
-{}
-
static const struct i2c_device_id nau8825_i2c_ids[] = {
{ "nau8825" },
{ }
.acpi_match_table = ACPI_PTR(nau8825_acpi_match),
},
.probe = nau8825_i2c_probe,
- .remove = nau8825_i2c_remove,
.id_table = nau8825_i2c_ids,
};
module_i2c_driver(nau8825_driver);
rt5616_dai, ARRAY_SIZE(rt5616_dai));
}
-static void rt5616_i2c_remove(struct i2c_client *i2c)
-{}
-
static void rt5616_i2c_shutdown(struct i2c_client *client)
{
struct rt5616_priv *rt5616 = i2c_get_clientdata(client);
.of_match_table = of_match_ptr(rt5616_of_match),
},
.probe = rt5616_i2c_probe,
- .remove = rt5616_i2c_remove,
.shutdown = rt5616_i2c_shutdown,
.id_table = rt5616_i2c_id,
};
return ret;
}
-static void rt5631_i2c_remove(struct i2c_client *client)
-{}
-
static struct i2c_driver rt5631_i2c_driver = {
.driver = {
.name = "rt5631",
.of_match_table = of_match_ptr(rt5631_i2c_dt_ids),
},
- .probe = rt5631_i2c_probe,
- .remove = rt5631_i2c_remove,
+ .probe = rt5631_i2c_probe,
.id_table = rt5631_i2c_id,
};
return ret;
}
-static void sta350_i2c_remove(struct i2c_client *client)
-{}
-
static const struct i2c_device_id sta350_i2c_id[] = {
{ "sta350" },
{ }
.name = "sta350",
.of_match_table = of_match_ptr(st350_dt_ids),
},
- .probe = sta350_i2c_probe,
- .remove = sta350_i2c_remove,
+ .probe = sta350_i2c_probe,
.id_table = sta350_i2c_id,
};
return ret;
}
-static void tas5086_i2c_remove(struct i2c_client *i2c)
-{}
-
static struct i2c_driver tas5086_i2c_driver = {
.driver = {
- .name = "tas5086",
+ .name = "tas5086",
.of_match_table = of_match_ptr(tas5086_dt_ids),
},
- .id_table = tas5086_i2c_id,
- .probe = tas5086_i2c_probe,
- .remove = tas5086_i2c_remove,
+ .id_table = tas5086_i2c_id,
+ .probe = tas5086_i2c_probe,
};
module_i2c_driver(tas5086_i2c_driver);
return ret;
}
-static void wm8900_i2c_remove(struct i2c_client *client)
-{}
-
static const struct i2c_device_id wm8900_i2c_id[] = {
{ "wm8900" },
{ }
.driver = {
.name = "wm8900",
},
- .probe = wm8900_i2c_probe,
- .remove = wm8900_i2c_remove,
+ .probe = wm8900_i2c_probe,
.id_table = wm8900_i2c_id,
};
#endif
return 0;
}
-static void wm9081_i2c_remove(struct i2c_client *client)
-{}
-
static const struct i2c_device_id wm9081_i2c_id[] = {
{ "wm9081" },
{ }
.driver = {
.name = "wm9081",
},
- .probe = wm9081_i2c_probe,
- .remove = wm9081_i2c_remove,
+ .probe = wm9081_i2c_probe,
.id_table = wm9081_i2c_id,
};