Home
last modified time | relevance | path

Searched hist:fe0a7e3d012738b0034b3c97ddb0e8bc0a3ff0e6 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/input/touchscreen/
H A Dresistive-adc-touch.cdiff fe0a7e3d012738b0034b3c97ddb0e8bc0a3ff0e6 Sat Oct 16 06:12:06 CEST 2021 Oleksij Rempel <o.rempel@pengutronix.de> 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>