summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/qcom_smbb.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-10-10 22:36:24 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-10-21 15:51:42 +0200
commit83bce34420eaf91506957703bf9a31d8581ed6cb (patch)
treec321a00498fae772405556049806ae278dd80db0 /drivers/power/supply/qcom_smbb.c
parentpower: supply: hwmon: move interface to private header (diff)
downloadlinux-83bce34420eaf91506957703bf9a31d8581ed6cb.tar.xz
linux-83bce34420eaf91506957703bf9a31d8581ed6cb.zip
power: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers. Convert all platform drivers below drivers/power/ to use .remove(), with the eventual goal to drop struct platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer. While touching these files, make indention of the struct initializer consistent in several files. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://lore.kernel.org/r/20241010203622.839625-6-u.kleine-koenig@baylibre.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/qcom_smbb.c')
-rw-r--r--drivers/power/supply/qcom_smbb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/power/supply/qcom_smbb.c b/drivers/power/supply/qcom_smbb.c
index 4e57762e27ba..a79563f6ff7a 100644
--- a/drivers/power/supply/qcom_smbb.c
+++ b/drivers/power/supply/qcom_smbb.c
@@ -1017,10 +1017,10 @@ static const struct of_device_id smbb_charger_id_table[] = {
MODULE_DEVICE_TABLE(of, smbb_charger_id_table);
static struct platform_driver smbb_charger_driver = {
- .probe = smbb_charger_probe,
- .remove_new = smbb_charger_remove,
- .driver = {
- .name = "qcom-smbb",
+ .probe = smbb_charger_probe,
+ .remove = smbb_charger_remove,
+ .driver = {
+ .name = "qcom-smbb",
.of_match_table = smbb_charger_id_table,
},
};