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>
This commit is contained in:
Uwe Kleine-König (The Capable Hub) 2026-06-17 12:04:13 +02:00 committed by Tzung-Bi Shih
parent 833740a233
commit 200691f509
12 changed files with 24 additions and 24 deletions

View File

@ -485,8 +485,8 @@ static void cros_ec_chardev_remove(struct platform_device *pdev)
}
static const struct platform_device_id cros_ec_chardev_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, cros_ec_chardev_id);

View File

@ -558,8 +558,8 @@ static SIMPLE_DEV_PM_OPS(cros_ec_debugfs_pm_ops,
cros_ec_debugfs_suspend, cros_ec_debugfs_resume);
static const struct platform_device_id cros_ec_debugfs_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, cros_ec_debugfs_id);

View File

@ -684,8 +684,8 @@ static SIMPLE_DEV_PM_OPS(cros_ec_lightbar_pm_ops,
cros_ec_lightbar_suspend, cros_ec_lightbar_resume);
static const struct platform_device_id cros_ec_lightbar_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, cros_ec_lightbar_id);

View File

@ -268,8 +268,8 @@ static SIMPLE_DEV_PM_OPS(cros_ec_sensorhub_pm_ops,
cros_ec_sensorhub_resume);
static const struct platform_device_id cros_ec_sensorhub_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, cros_ec_sensorhub_id);

View File

@ -421,8 +421,8 @@ static void cros_ec_sysfs_remove(struct platform_device *pd)
}
static const struct platform_device_id cros_ec_sysfs_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, cros_ec_sysfs_id);

View File

@ -135,8 +135,8 @@ static void cros_ec_vbc_remove(struct platform_device *pd)
}
static const struct platform_device_id cros_ec_vbc_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, cros_ec_vbc_id);

View File

@ -221,8 +221,8 @@ MODULE_DEVICE_TABLE(acpi, keyboard_led_acpi_match);
#endif
static const struct platform_device_id keyboard_led_id[] = {
{ "cros-keyboard-leds", 0 },
{}
{ .name = "cros-keyboard-leds" },
{ }
};
MODULE_DEVICE_TABLE(platform, keyboard_led_id);

View File

@ -249,8 +249,8 @@ static SIMPLE_DEV_PM_OPS(cros_usbpd_logger_pm_ops, cros_usbpd_logger_suspend,
cros_usbpd_logger_resume);
static const struct platform_device_id cros_usbpd_logger_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, cros_usbpd_logger_id);

View File

@ -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);

View File

@ -152,8 +152,8 @@ static const struct acpi_device_id wilco_ec_acpi_device_ids[] = {
MODULE_DEVICE_TABLE(acpi, wilco_ec_acpi_device_ids);
static const struct platform_device_id wilco_ec_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, wilco_ec_id);

View File

@ -266,8 +266,8 @@ static void wilco_ec_debugfs_remove(struct platform_device *pdev)
}
static const struct platform_device_id wilco_ec_debugfs_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, wilco_ec_debugfs_id);

View File

@ -410,8 +410,8 @@ static void telem_device_remove(struct platform_device *pdev)
}
static const struct platform_device_id telem_id[] = {
{ DRV_NAME, 0 },
{}
{ .name = DRV_NAME },
{ }
};
MODULE_DEVICE_TABLE(platform, telem_id);