mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
mailbox: Use named initializers for acpi_device_id
Use a designated 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. 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: Jassi Brar <jassisinghbrar@gmail.com>
This commit is contained in:
parent
74f1cf02d9
commit
01a40ad5a9
|
|
@ -228,8 +228,8 @@ MODULE_DEVICE_TABLE(of, slimpro_of_match);
|
|||
|
||||
#ifdef CONFIG_ACPI
|
||||
static const struct acpi_device_id slimpro_acpi_ids[] = {
|
||||
{"APMC0D01", 0},
|
||||
{}
|
||||
{ .id = "APMC0D01" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, slimpro_acpi_ids);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1006,8 +1006,8 @@ static const struct of_device_id mpxy_mbox_of_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, mpxy_mbox_of_match);
|
||||
|
||||
static const struct acpi_device_id mpxy_mbox_acpi_match[] = {
|
||||
{ "RSCV0005" },
|
||||
{}
|
||||
{ .id = "RSCV0005" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, mpxy_mbox_acpi_match);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user