]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: apple-gmux: Drop unused assignment of pnp_device_id driver data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 10 Jun 2026 14:32:59 +0000 (16:32 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 11 Jun 2026 13:58:14 +0000 (16:58 +0300)
commit01ffffc4d0bd5b44a3e5fc07ec232266a1601c45
treed7f352e27abf2268a21172a43df017762309d7df
parent25fbff92dd485eb15eaf1aa7252a99fcaabfef5e
platform/x86: apple-gmux: 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 for improved
readability 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>
Link: https://patch.msgid.link/dd6e70d3075205a1d5c1fa324db7a822f37e2349.1781101905.git.u.kleine-koenig@baylibre.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/apple-gmux.c