Input: edt-ft5x06 - fix get_default register write access
authorMarco Felsch <m.felsch@pengutronix.de>
Sat, 9 May 2020 21:34:35 +0000 (14:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:50:12 +0000 (17:50 +0200)
commita6a0317bf9c2f1604f50a389b6711c53509e5e0d
treea10a642467d62f61a8bae914306eb5ae4151c50e
parent70a2296d4bab858b69bff11f447740a11511d4f4
Input: edt-ft5x06 - fix get_default register write access

[ Upstream commit 255cdaf73412de13608fb776101402dca68bed2b ]

Since commit b6eba86030bf ("Input: edt-ft5x06 - add offset support for
ev-ft5726") offset-x and offset-y is supported. Devices using those
offset parameters don't support the offset parameter so we need to add
the NO_REGISTER check for edt_ft5x06_ts_get_defaults().

Fixes: b6eba86030bf ("Input: edt-ft5x06 - add offset support for ev-ft5726")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.kernel.org/r/20200227112819.16754-2-m.felsch@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/touchscreen/edt-ft5x06.c