lkml.org 
[lkml]   [2021]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1] Input: resistive-adc-touch - fix division by zero error on z1 == 0
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

\
 
 \ /
  Last update: 2021-10-16 06:17    [W:0.048 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site