Searched hist:fbd1ec000213c8b457dd4fb15b6de9ba02ec5482 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/input/touchscreen/ |
H A D | ili210x.c | diff fbd1ec000213c8b457dd4fb15b6de9ba02ec5482 Sun Feb 09 16:42:36 CST 2020 Luca Weiss <luca@z3ntu.xyz> 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: cc12ba1872c6 ("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>
|