summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome/cros_usbpd_notify.c
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-06-17 12:04:13 +0200
committerTzung-Bi Shih <tzungbi@kernel.org>2026-06-29 02:52:38 +0000
commit200691f509fb77be78cd4b2d38b4e540a454bec3 (patch)
tree176d67c1ad912f05f6cfcff63bf96181c773af79 /drivers/platform/chrome/cros_usbpd_notify.c
parent833740a2333c2e4db4e02e3d0ffba04e8718a5f3 (diff)
downloadlinux-next-200691f509fb77be78cd4b2d38b4e540a454bec3.tar.gz
linux-next-200691f509fb77be78cd4b2d38b4e540a454bec3.zip
platform/chrome: Drop unused assignment of platform_device_id driver data
The drivers explicitly set the .driver_data member of struct platform_device_id to zero without relying on that value. Drop these unused assignments. While touching these arrays use a single space in the list terminator consistently. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://lore.kernel.org/r/5b72bac661bdf1c874bea4b91ce3c2eccc84bba1.1781690554.git.u.kleine-koenig@baylibre.com Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'drivers/platform/chrome/cros_usbpd_notify.c')
-rw-r--r--drivers/platform/chrome/cros_usbpd_notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/chrome/cros_usbpd_notify.c b/drivers/platform/chrome/cros_usbpd_notify.c
index c90174360004..bdf3b2ab17a7 100644
--- a/drivers/platform/chrome/cros_usbpd_notify.c
+++ b/drivers/platform/chrome/cros_usbpd_notify.c
@@ -233,8 +233,8 @@ static void cros_usbpd_notify_remove_plat(struct platform_device *pdev)
}
static const struct platform_device_id cros_usbpd_notify_id[] = {
- { DRV_NAME, 0 },
- {}
+ { .name = DRV_NAME },
+ { }
};
MODULE_DEVICE_TABLE(platform, cros_usbpd_notify_id);