HID: hid-google-hammer: 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.

Signed-off-by: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
Pawel Zalewski 2026-09-08 10:19:03 +01:00 committed by Jiri Kosina
parent 45c8ab60f8
commit 0fd3187e62

View File

@ -268,7 +268,7 @@ static void cbas_ec_remove(struct platform_device *pdev)
#ifdef CONFIG_ACPI
static const struct acpi_device_id cbas_ec_acpi_ids[] = {
{ "GOOG000B", 0 },
{ .id = "GOOG000B" },
{ }
};
MODULE_DEVICE_TABLE(acpi, cbas_ec_acpi_ids);