summaryrefslogtreecommitdiff
path: root/drivers/input/misc/qnap-mcu-input.c
diff options
context:
space:
mode:
authorJunjie Cao <junjie.cao@intel.com>2025-11-17 11:23:58 +0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2025-11-18 11:19:38 -0800
commit70f62e52176df0f1f4684919546a6198d5e82529 (patch)
treeb8b507dc79782a3009e5ca24de0b37e5434a9c5c /drivers/input/misc/qnap-mcu-input.c
parenta311c777f2987e6ddba2d2dd2f82f2135d65f8aa (diff)
Input: ti_am335x_tsc - clamp coordinate_readouts to DT maximum (6)
DT binding (ti,am3359-tsc.yaml) sets ti,coordinate-readouts to a maximum of 6. The MFD parent also enforces that (readouts * 2 + 2) + adc_channels <= 16 and fails probe if this is violated, so the touchscreen subdriver will not even probe in those cases. Clamp coordinate_readouts > 6 to 6 in the subdriver to align with the binding and keep behavior sane if invalid platform data bypasses schema checks. Keep the existing default to 5 for non-positive values. No functional change with valid DT. Signed-off-by: Junjie Cao <junjie.cao@intel.com> Link: https://patch.msgid.link/20251117032358.891822-1-junjie.cao@intel.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/qnap-mcu-input.c')
0 files changed, 0 insertions, 0 deletions