]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: ccp - Define pci_device_ids using named initializers
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Mon, 4 May 2026 15:24:21 +0000 (17:24 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:36 +0000 (18:08 +0800)
commit15d253c5d7fa17d3499c885bdb82070546180e44
treec6485f5b00caaf37bf8df7ce708b238463b857c5
parent69f93dbb40377edc4c4bf3fc67bbd63ba35fde3d
crypto: ccp - Define pci_device_ids using named initializers

The .driver_data member of the struct pci_device_id array was
initialized by list expressions. This isn't easily readable if you're
not into PCI. Using the PCI_DEVICE macro and named initializers is more
explicit and thus easier to parse. Also skip explicit assignment of 0
(which the compiler then takes care of) in the terminating entry.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/sp-pci.c