mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
gpio: cros-ec: Drop unused assignment of platform_device_id driver data
The driver explicitly set the .driver_data member of struct platform_device_id to zero without relying on that value. Drop this unused assignments. While touching this array unify spacing and use named initializers for .name. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/06dfc8d1df46467269ee6113f161edac234e51cf.1779893336.git.u.kleine-koenig@baylibre.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
parent
61442e46fb
commit
516e4d8869
|
|
@ -196,8 +196,8 @@ static int cros_ec_gpio_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id cros_ec_gpio_id[] = {
|
||||
{ "cros-ec-gpio", 0 },
|
||||
{}
|
||||
{ .name = "cros-ec-gpio" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, cros_ec_gpio_id);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user