Input: iqs5xx - optimize axis definition and validation
authorJeff LaBundy <jeff@labundy.com>
Mon, 22 Mar 2021 04:01:35 +0000 (21:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 25 Mar 2021 18:14:09 +0000 (11:14 -0700)
commit40c3efdc0b77d3f5298c9ce4fcb029da30f887e5
treefcf71b5249f322422dfad9d8025cbceff3ab57e7
parent0cdd2e906cf321e9a736b94d22e6603f6f515ee8
Input: iqs5xx - optimize axis definition and validation

Set the maximum ABS_MT_PRESSURE value and use the existing U16_MAX
definition instead of a magic number to validate ABS_MT_POSITION_X
and ABS_MT_POSITION_Y.

Also use input_set_abs_params() rather than input_abs_set_max() to
avoid having to call input_set_capability() separately.

Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/20210313191236.4366-3-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/iqs5xx.c