mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 16:53:20 -04:00
PNP: 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 simplify the list terminator and align the the array's coding style to what is used most for these. This patch doesn't modify the compiled array, only its representation in source form benefits. The former was confirmed with builds on x86 and arm64. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/0484b30b6935994f5a2d97c55a47a95e1557dd15.1781102535.git.u.kleine-koenig@baylibre.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
dc59e4fea9
commit
07bfd4abdc
@@ -17,10 +17,10 @@
|
||||
|
||||
static const struct pnp_device_id pnp_dev_table[] = {
|
||||
/* General ID for reserving resources */
|
||||
{"PNP0c02", 0},
|
||||
{ .id = "PNP0c02" },
|
||||
/* memory controller */
|
||||
{"PNP0c01", 0},
|
||||
{"", 0}
|
||||
{ .id = "PNP0c01" },
|
||||
{ }
|
||||
};
|
||||
|
||||
static void reserve_range(struct pnp_dev *dev, struct resource *r, int port)
|
||||
|
||||
Reference in New Issue
Block a user