summaryrefslogtreecommitdiff
path: root/drivers/input/serio/i8042-io.h
diff options
context:
space:
mode:
authorWerner Sembach <wse@tuxedocomputers.com>2022-06-29 17:38:07 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-22 12:50:26 +0100
commitee77a19ee5b3dc21e0d80854e144f0d047c9fd55 (patch)
treec4de9aede19abe2cb2059297ab6d7fe83cc6e947 /drivers/input/serio/i8042-io.h
parenta789c05516a4e2df8b987971f08c95a531c3df9b (diff)
Input: i8042 - merge quirk tables
[ Upstream commit ff946268a0813c35b790dfbe07c3bfaa7bfb869c ] Merge i8042 quirk tables to reduce code duplication for devices that need more than one quirk. Before every quirk had its own table with devices needing that quirk. If a new quirk needed to be added a new table had to be created. When a device needed multiple quirks, it appeared in multiple tables. Now only one table called i8042_dmi_quirk_table exists. In it every device has one entry and required quirks are coded in the .driver_data field of the struct dmi_system_id used by this table. Multiple quirks for one device can be applied by bitwise-or of the new SERIO_QUIRK_* defines. Also align quirkable options with command line parameters and make vendor wide quirks per device overwriteable on a per device basis. The first match is honored while following matches are ignored. So when a vendor wide quirk is defined in the table, a device can inserted before and therefore ignoring the vendor wide define. Signed-off-by: Werner Sembach <wse@tuxedocomputers.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20220629112725.12922-3-wse@tuxedocomputers.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Stable-dep-of: 9c445d2637c9 ("Input: i8042 - add Clevo PCX0DX to i8042 quirk table") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/input/serio/i8042-io.h')
0 files changed, 0 insertions, 0 deletions