summaryrefslogtreecommitdiffstats
path: root/drivers/input/input.c
diff options
context:
space:
mode:
authorCaleb Connolly <caleb.connolly@linaro.org>2023-06-06 12:05:32 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2023-06-06 12:11:15 -0700
commit8c9cce9cb81b5fdc6e66bf3f129727b89e8daab7 (patch)
treefaed152dd7972a3afbd7ab42d27fc75c066198ea /drivers/input/input.c
parent60b7ae370797692dc747c3b88a7f2c737e39f864 (diff)
downloadlinux-stable-8c9cce9cb81b5fdc6e66bf3f129727b89e8daab7.tar.gz
linux-stable-8c9cce9cb81b5fdc6e66bf3f129727b89e8daab7.tar.bz2
linux-stable-8c9cce9cb81b5fdc6e66bf3f129727b89e8daab7.zip
Input: pm8941-powerkey - fix debounce on gen2+ PMICs
Since PM8998/PM660, the power key debounce register was redefined to support shorter debounce times. On PM8941 the shortest debounce time (represented by register value 0) was 15625us, on PM8998 the shortest debounce time is 62us, with the default being 2ms. Adjust the bit shift to correctly program debounce on PM8998 and newer. Fixes: 68c581d5e7d8 ("Input: add Qualcomm PM8941 power key driver") Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> Link: https://lore.kernel.org/r/20230529-pm8941-pwrkey-debounce-v1-2-c043a6d5c814@linaro.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/input.c')
0 files changed, 0 insertions, 0 deletions