summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ultra45_env.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-10-17 17:59:01 +0200
committerGuenter Roeck <linux@roeck-us.net>2024-11-10 23:48:07 +0100
commit6126f7bb6075d0af577e55bf7e2cbbcc272f520b (patch)
treeb554b9326de82dc90ab40f4f3ea4b92c4626640a /drivers/hwmon/ultra45_env.c
parenthwmon: (sht4x): add heater support (diff)
downloadlinux-6126f7bb6075d0af577e55bf7e2cbbcc272f520b.tar.xz
linux-6126f7bb6075d0af577e55bf7e2cbbcc272f520b.zip
hwmon: 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/hwmonto 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> Message-ID: <20241017155900.137357-2-u.kleine-koenig@baylibre.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ultra45_env.c')
-rw-r--r--drivers/hwmon/ultra45_env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ultra45_env.c b/drivers/hwmon/ultra45_env.c
index 2765d5f1b7f0..e4f1bb538628 100644
--- a/drivers/hwmon/ultra45_env.c
+++ b/drivers/hwmon/ultra45_env.c
@@ -317,7 +317,7 @@ static struct platform_driver env_driver = {
.of_match_table = env_match,
},
.probe = env_probe,
- .remove_new = env_remove,
+ .remove = env_remove,
};
module_platform_driver(env_driver);