mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
Input: mouse - cyapa: 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> Link: https://patch.msgid.link/20261013-acpi-input-v1-3-53ad09ba82b7@thegoodpenguin.co.uk Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
e7f8b63997
commit
4aaa4f16c9
|
|
@ -1462,9 +1462,9 @@ MODULE_DEVICE_TABLE(i2c, cyapa_id_table);
|
|||
|
||||
#ifdef CONFIG_ACPI
|
||||
static const struct acpi_device_id cyapa_acpi_id[] = {
|
||||
{ "CYAP0000", 0 }, /* Gen3 trackpad with 0x67 I2C address. */
|
||||
{ "CYAP0001", 0 }, /* Gen5 trackpad with 0x24 I2C address. */
|
||||
{ "CYAP0002", 0 }, /* Gen6 trackpad with 0x24 I2C address. */
|
||||
{ .id = "CYAP0000" }, /* Gen3 trackpad with 0x67 I2C address. */
|
||||
{ .id = "CYAP0001" }, /* Gen5 trackpad with 0x24 I2C address. */
|
||||
{ .id = "CYAP0002" }, /* Gen6 trackpad with 0x24 I2C address. */
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, cyapa_acpi_id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user