diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-10-17 17:59:01 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-11-10 23:48:07 +0100 |
commit | 6126f7bb6075d0af577e55bf7e2cbbcc272f520b (patch) | |
tree | b554b9326de82dc90ab40f4f3ea4b92c4626640a /drivers/hwmon/vt8231.c | |
parent | hwmon: (sht4x): add heater support (diff) | |
download | linux-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/vt8231.c')
-rw-r--r-- | drivers/hwmon/vt8231.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/vt8231.c b/drivers/hwmon/vt8231.c index dcdd14ccd115..3bf27c21845b 100644 --- a/drivers/hwmon/vt8231.c +++ b/drivers/hwmon/vt8231.c @@ -910,11 +910,11 @@ static void vt8231_remove(struct platform_device *pdev) static struct platform_driver vt8231_driver = { - .driver = { + .driver = { .name = DRIVER_NAME, }, .probe = vt8231_probe, - .remove_new = vt8231_remove, + .remove = vt8231_remove, }; static const struct pci_device_id vt8231_pci_ids[] = { |