OSDN Git Service

Input: goodix - use "inverted_[xy]" flags instead of "rotated_screen"
authorKarsten Merker <merker@debian.org>
Fri, 18 Dec 2015 01:08:31 +0000 (17:08 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 18 Dec 2015 01:11:56 +0000 (17:11 -0800)
commit57c80e8e5d1cddae0651e5314394e6069ebbbe3c
tree394a31369ed4865d6b98cecfb5d41976cfd8a67f
parentad48cf5e9597147bb2bb526a6d379ee88970dec8
Input: goodix - use "inverted_[xy]" flags instead of "rotated_screen"

The goodix touchscreen driver uses a "rotated_screen" flag for
systems on which the touchscreen is mounted rotated by 180
degrees with respect to the display.  With the addition of
support for the dt properties "touchscreen-inverted-x" and
"touchscreen-inverted-y", a separate "rotated_screen" flag
is not necessary anymore. This patch replaces it by setting
the inverted_x and inverted_y flags instead.

Signed-off-by: Karsten Merker <merker@debian.org>
Reviewed-by: Irina Tirdea <irina.tirdea@intel.com>
Tested-by: Bastien Nocera <hadess@hadess.net>
Acked-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c