]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ili210x - fix return value of is_visible function
authorLuca Weiss <luca@z3ntu.xyz>
Sun, 9 Feb 2020 22:42:36 +0000 (14:42 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Feb 2020 18:00:01 +0000 (10:00 -0800)
commit2ba81cb08c4a4a535c54bcdfce824d327a93ddfe
treec62bff613730164126e099eddd935d5ff34799bb
parentd6bd49a8d31f1b6cdf15f4fe34c079a2da044faf
Input: ili210x - fix return value of is_visible function

The is_visible function expects the permissions associated with an
attribute of the sysfs group or 0 if an attribute is not visible.

Change the code to return the attribute permissions when the attribute
should be visible which resolves the warning:

  Attribute calibrate: Invalid permissions 01

Fixes: 15d4bac1794a ("Input: ili210x - optionally show calibrate sysfs attribute")
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
Link: https://lore.kernel.org/r/20200209145628.649409-1-luca@z3ntu.xyz
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ili210x.c