diff options
| author | Pawel Zalewski (The Capable Hub) <pzalewski@thegoodpenguin.co.uk> | 2026-08-07 12:26:09 +0100 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-08-15 11:28:36 +1000 |
| commit | 528bc53c3bfa1c745f0f7510dd56bb63be1dd5d1 (patch) | |
| tree | ed5d3ee54b78e7e21e0936256fb3d2b35eb90f14 /drivers | |
| parent | 7f2345f47dd189625f657cd72437179ab4170ee1 (diff) | |
hwrng: drivers - use named initializers for acpi_device_id
Use a named initializer for the acpi_device_id fields which
makes the code more readable and consistent with how lists
are initialized in the rest of the kernel code base. Also
drop explicitly setting fields to 0 where it is redundant.
Signed-off-by: Pawel Zalewski (The Capable Hub) <pzalewski@thegoodpenguin.co.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/char/hw_random/hisi-trng-v2.c | 2 | ||||
| -rw-r--r-- | drivers/char/hw_random/xgene-rng.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hw_random/hisi-trng-v2.c b/drivers/char/hw_random/hisi-trng-v2.c index 6584ed051e09..9e0ecea56ad6 100644 --- a/drivers/char/hw_random/hisi-trng-v2.c +++ b/drivers/char/hw_random/hisi-trng-v2.c @@ -77,7 +77,7 @@ static int hisi_trng_probe(struct platform_device *pdev) } static const struct acpi_device_id hisi_trng_acpi_match[] = { - { "HISI02B3", 0 }, + { .id = "HISI02B3" }, { } }; MODULE_DEVICE_TABLE(acpi, hisi_trng_acpi_match); diff --git a/drivers/char/hw_random/xgene-rng.c b/drivers/char/hw_random/xgene-rng.c index 97e505c2fcd1..33708dfa21e2 100644 --- a/drivers/char/hw_random/xgene-rng.c +++ b/drivers/char/hw_random/xgene-rng.c @@ -297,7 +297,7 @@ static int xgene_rng_init(struct hwrng *rng) #ifdef CONFIG_ACPI static const struct acpi_device_id xgene_rng_acpi_match[] = { - { "APMC0D18", }, + { .id = "APMC0D18" }, { } }; MODULE_DEVICE_TABLE(acpi, xgene_rng_acpi_match); |
