]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/chrome: Switch back to struct platform_driver::remove()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 28 Oct 2024 08:26:11 +0000 (09:26 +0100)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 28 Oct 2024 08:48:34 +0000 (08:48 +0000)
commitea45f3f46734a47bdbcfb31f41748484219d2ea6
treee746fa7593a44f91add60b8895d7ffaf878f320f
parent9c41f371457bd9a24874e3c7934d9745e87fbc58
platform/chrome: 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/platform/chrome 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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20241028082611.431723-2-u.kleine-koenig@baylibre.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
13 files changed:
drivers/platform/chrome/cros_ec_chardev.c
drivers/platform/chrome/cros_ec_debugfs.c
drivers/platform/chrome/cros_ec_lightbar.c
drivers/platform/chrome/cros_ec_lpc.c
drivers/platform/chrome/cros_ec_sysfs.c
drivers/platform/chrome/cros_ec_typec.c
drivers/platform/chrome/cros_ec_vbc.c
drivers/platform/chrome/cros_typec_switch.c
drivers/platform/chrome/cros_usbpd_logger.c
drivers/platform/chrome/cros_usbpd_notify.c
drivers/platform/chrome/wilco_ec/core.c
drivers/platform/chrome/wilco_ec/debugfs.c
drivers/platform/chrome/wilco_ec/telemetry.c