mmc: wbsd: Drop unused assignment of pnp_device_id driver data

The driver explicitly sets the .driver_data member of struct
pnp_device_id to zero without relying on that value. Drop these unused
assignments.

While touching this array use a named initializer for .id and simplify
the list terminator.

This patch doesn't modify the compiled array, only its representation in
source form benefits. The former was confirmed with an x86 build.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
This commit is contained in:
Uwe Kleine-König (The Capable Hub) 2026-06-10 10:41:04 +02:00 committed by Ulf Hansson
parent 86e23edba7
commit 1f8c98dc95

View File

@ -52,9 +52,9 @@
#ifdef CONFIG_PNP
static const struct pnp_device_id pnp_dev_table[] = {
{ "WEC0517", 0 },
{ "WEC0518", 0 },
{ "", 0 },
{ .id = "WEC0517" },
{ .id = "WEC0518" },
{ }
};
MODULE_DEVICE_TABLE(pnp, pnp_dev_table);