Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: i8042 - unbreak Pegatron C15B

g++ reports

drivers/input/serio/i8042-x86ia64io.h:225:3: error: ‘.matches’ designator used multiple times in the same initializer list

C99 semantics is that last duplicated initialiser wins,
so DMI entry gets overwritten.

Fixes: a48491c65b51 ("Input: i8042 - add ByteSpeed touchpad to noloop table")
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Link: https://lore.kernel.org/r/20201228072335.GA27766@localhost.localdomain
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Alexey Dobriyan and committed by
Dmitry Torokhov
a3a9060e f605be6a

+2
+2
drivers/input/serio/i8042-x86ia64io.h
··· 219 219 DMI_MATCH(DMI_SYS_VENDOR, "PEGATRON CORPORATION"), 220 220 DMI_MATCH(DMI_PRODUCT_NAME, "C15B"), 221 221 }, 222 + }, 223 + { 222 224 .matches = { 223 225 DMI_MATCH(DMI_SYS_VENDOR, "ByteSpeed LLC"), 224 226 DMI_MATCH(DMI_PRODUCT_NAME, "ByteSpeed Laptop C15B"),