Re: [PATCH v1] Input: resistive-adc-touch - fix division by zero error on z1 == 0

From
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date
2021-10-16 04:16:29
Also in
lkml
Reply to
Oleksij Rempel, 2021-10-07
On Thu, Oct 07, 2021 at 11:57:27AM +0200, Oleksij Rempel wrote:
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>
Applied, thank you.

-- 
Dmitry
Thread (2 messages) 2 messages, 2 authors, last reply 2021-10-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help