Input: of_touchscreen - explicitly choose axis
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 7 Mar 2020 01:11:46 +0000 (17:11 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 24 Mar 2020 22:21:24 +0000 (15:21 -0700)
commitcc5117d6e4988e684f68ce5b5db312a3f0f943df
tree6a66010e2feafc01ee7767fe42be5f0b0cf22e34
parentb9a1c116846e9ab9d4872d61604207cd5aef09b4
Input: of_touchscreen - explicitly choose axis

The 'axis + 1' calculation is implicit and potentially error prone.
Moreover, few lines before the axis is set explicitly for both X and Y.

Do the same when retrieving different properties for X and Y.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200303180917.12563-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/of_touchscreen.c