diff options
author | Jeff LaBundy <jeff@labundy.com> | 2021-03-21 21:01:35 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2021-03-25 11:14:09 -0700 |
commit | 40c3efdc0b77d3f5298c9ce4fcb029da30f887e5 (patch) | |
tree | fcf71b5249f322422dfad9d8025cbceff3ab57e7 /lib | |
parent | 0cdd2e906cf321e9a736b94d22e6603f6f515ee8 (diff) |
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions