]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: usbtouchscreen - move process_pkt() into main device structure
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 12 Jul 2024 05:18:46 +0000 (22:18 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 16 Jul 2024 01:07:38 +0000 (18:07 -0700)
commitfbb1c92282fac71b07ec59c5501d4b7751f5d48d
treec0a2e5234c50251d19a19404d68b3c93e9f8e1ac
parentca95a47e29b2f9455c6673a9daeead437e940a7d
Input: usbtouchscreen - move process_pkt() into main device structure

In preparation of splitting big usbtouch_dev_info table into separate
per-protocol structures and constifying them move process_pkt() from the
device info into main drvice structure and set it up in probe().
We can derive if we should use single- or multi-packet handling based
on presence of get_pkt_len() method.

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