dt-bindings: input: adc-keys: clarify description
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 5 Jan 2021 22:20:07 +0000 (14:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Jan 2021 22:22:01 +0000 (14:22 -0800)
commit698dc0cf944772a79a9aa417e647c0f7587e51df
tree2d322b7a54d824e0d54ea91f8a893618e9d7e4c6
parent60159e9e7bc7e528c103b6b6d47dfd83af29669c
dt-bindings: input: adc-keys: clarify description

The current description of ADC keys is not precise enough.

"when this key is pressed" leaves it open if a key is considered pressed
below or above the threshold. This has led to confusion:
drivers/input/keyboard/adc-keys.c ignores the meaning of thresholds and
sets the key that is closest to press-threshold-microvolt.

This patch nails down the definitions and provides an interpretation of the
supplied example.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201222110815.24121-1-xypron.glpk@gmx.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/adc-keys.txt