Skip to content
Commit 04d99a0a authored by Werner Sembach's avatar Werner Sembach Committed by Greg Kroah-Hartman
Browse files

Input: i8042 - merge quirk tables

[ Upstream commit ff946268

 ]

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: default avatarWerner Sembach <wse@tuxedocomputers.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220629112725.12922-3-wse@tuxedocomputers.com
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Stable-dep-of: 9c445d26

 ("Input: i8042 - add Clevo PCX0DX to i8042 quirk table")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ab85074c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment