Skip to content
Commit 781bab32 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Dmitry Torokhov
Browse files

Input: elants_i2c - fix division by zero if firmware reports zero phys size



Touchscreen firmware of ASUS Transformer TF700T reports zeros for the phys
size. Hence check whether the size is zero and don't set the resolution in
this case.

Reported-by: default avatarJasper Korten <jja2000@gmail.com>
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210302100824.3423-1-digetx@gmail.com


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 69d5ff3e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment