Input: usbtouchscreen - split device info table into individual pieces
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 12 Jul 2024 05:18:48 +0000 (22:18 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 16 Jul 2024 01:07:38 +0000 (18:07 -0700)
commit7f787df1ac447e13ede6022061ecc2903afec26e
tree17e513a724417c780ba534961c519c05b0b23178
parent830f06c01789e1da6d8e7a92b9cf50dc14610181
Input: usbtouchscreen - split device info table into individual pieces

Instead of using a single table containing information about various
touchscreens and enums to match the driver ID table data with chip
information define individual per-protocol instances of
usbtouch_device_info structure and reference them directly from
the usbtouch_devices ID table. This is simpler, safer, and uses less
memory in case some protocols are disabled.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240712051851.3463657-6-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/usbtouchscreen.c