Input: edt-ft5x06 - get/set M12 report rate by sysfs
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Tue, 28 Jun 2022 17:56:28 +0000 (10:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 29 Jun 2022 04:59:58 +0000 (21:59 -0700)
commit23ea98f4bafa0c4639401747a354e09a5e7686da
tree5b3918a19909cfa13e1a363a64354ed434537fc9
parent625f829586ea96b93817bf675cc42990ab451a17
Input: edt-ft5x06 - get/set M12 report rate by sysfs

Add support for reading/writing scan rate (SC) register for M12 by
sysfs. The register value is equal to the SC (Hz), unlike M06, where
instead it is equal to SC / 10.

Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Tested-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://lore.kernel.org/r/20220621123937.1330389-3-dario.binacchi@amarulasolutions.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/edt-ft5x06.c