diff options
| author | Pawel Zalewski <pzalewski@thegoodpenguin.co.uk> | 2026-09-04 15:41:43 +0100 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-09-11 21:42:12 -0700 |
| commit | 50b265abd9eb00ddb29b77e996e0c4cac38212bf (patch) | |
| tree | 84df961bf6747b9db252b99b87c6a67658752464 /drivers/edac | |
| parent | d51e53fbb4c25d865852a01c5f15f3c4dad618d9 (diff) | |
| download | linux-next-50b265abd9eb00ddb29b77e996e0c4cac38212bf.tar.gz linux-next-50b265abd9eb00ddb29b77e996e0c4cac38212bf.zip | |
EDAC/{bluefield,loongson}: 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.
While at it - unify the list terminator to have a single space between
the brackets and no trailing comma.
Signed-off-by: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: David Thompson <davthompson@nvidia.com>
Acked-by: Qunqin Zhao <zhaoqunqin@loongson.cn>
Link: https://patch.msgid.link/20260904-acpi-edac-v1-1-ef93d60bbda4@thegoodpenguin.co.uk
Diffstat (limited to 'drivers/edac')
| -rw-r--r-- | drivers/edac/bluefield_edac.c | 4 | ||||
| -rw-r--r-- | drivers/edac/loongson_edac.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/edac/bluefield_edac.c b/drivers/edac/bluefield_edac.c index ae3bb7afa103..472fc8762778 100644 --- a/drivers/edac/bluefield_edac.c +++ b/drivers/edac/bluefield_edac.c @@ -472,8 +472,8 @@ static void bluefield_edac_mc_remove(struct platform_device *pdev) } static const struct acpi_device_id bluefield_mc_acpi_ids[] = { - {"MLNXBF08", 0}, - {} + { .id = "MLNXBF08" }, + { } }; MODULE_DEVICE_TABLE(acpi, bluefield_mc_acpi_ids); diff --git a/drivers/edac/loongson_edac.c b/drivers/edac/loongson_edac.c index 38745800ed01..3ed4d34a3368 100644 --- a/drivers/edac/loongson_edac.c +++ b/drivers/edac/loongson_edac.c @@ -137,8 +137,8 @@ static void edac_remove(struct platform_device *pdev) } static const struct acpi_device_id loongson_edac_acpi_match[] = { - {"LOON0010", 0}, - {} + { .id = "LOON0010" }, + { } }; MODULE_DEVICE_TABLE(acpi, loongson_edac_acpi_match); |
