mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
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>
This commit is contained in:
parent
7f2345f47d
commit
528bc53c3b
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user