mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
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:
parent
833740a233
commit
200691f509
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user