Files
u-boot/drivers
Peter Cai 80d4c02b93 button: adc: set state to pressed when the voltage is closest to nominal
In the Linux implementation of adc-keys
(drivers/input/keyboard/adc-keys.c), `press-threshold-microvolt` is not
really interpreted as a threshold, but rather as the "nominal voltage"
of the button. When the voltage read from the ADC is closest to a
button's `press-threshold-microvolt`, the button is considered pressed.

This patch reconciles the behavior of button-adc with Linux's adc-keys
such that device trees can be synchronized with minimal modifications.

Signed-off-by: Peter Cai <peter@typeblog.net>
2022-02-11 09:00:47 -05:00
..
2022-01-28 17:58:41 -05:00
2022-01-25 11:44:36 -07:00
2021-09-25 09:46:15 -06:00
2022-01-19 18:11:34 +01:00
2021-10-05 08:50:15 -04:00
2022-02-08 09:41:27 -05:00
2022-01-13 07:57:49 -05:00
2021-10-31 08:46:44 -04:00
2022-01-13 07:57:49 -05:00
2022-01-19 18:11:34 +01:00
2021-11-09 11:57:22 +09:00
2022-02-08 09:41:27 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2021-10-01 21:08:18 -04:00
2021-10-31 08:46:44 -04:00
2021-10-31 08:46:44 -04:00