diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2021-10-16 07:12:06 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2021-10-16 08:11:03 +0300 |
commit | fe0a7e3d012738b0034b3c97ddb0e8bc0a3ff0e6 (patch) | |
tree | bdf797ed679a3639aa1053d51a5e8822a6611e36 /Makefile | |
parent | d997cc1715df7b6c3df798881fb9941acf0079f8 (diff) | |
download | linux-fe0a7e3d012738b0034b3c97ddb0e8bc0a3ff0e6.tar.xz |
Input: resistive-adc-touch - fix division by zero error on z1 == 0
For proper pressure calculation we need at least x and z1 to be non
zero. Even worse, in case z1 we may run in to division by zero
error.
Fixes: 60b7db914ddd ("Input: resistive-adc-touch - rework mapping of channels")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20211007095727.29579-1-o.rempel@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions