Input: ili210x - optionally show calibrate sysfs attribute
authorSven Van Asbroeck <thesven73@gmail.com>
Tue, 12 Nov 2019 23:44:10 +0000 (15:44 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 Nov 2019 23:53:33 +0000 (15:53 -0800)
commitcc12ba1872c6bf05b5f177fae5082bcbea335f2b
tree189f75f69451c6fa607f93bf4d41da3d88afeff6
parentb32fbeaec52d387004dd7fa15877b8adf7b396c3
Input: ili210x - optionally show calibrate sysfs attribute

Only show the 'calibrate' sysfs attribute on chip flavours
which support calibration by writing to a calibration register.

Do this by adding a flag to the chip operations structure.

Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com>
Link: https://lore.kernel.org/r/20191112210148.3535-2-TheSven73@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ili210x.c