Input: goodix - allow specifying the config filename
authorHans de Goede <hdegoede@redhat.com>
Tue, 21 Sep 2021 04:08:44 +0000 (21:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 21 Sep 2021 05:00:28 +0000 (22:00 -0700)
commit20e317222eeabd74e9ff76cf4daf85f961f608dc
tree74256400b7c78331bde00a7fe583d68fc4205f36
parent7642f29c731e383623d368a234a99ff9fb2eb97b
Input: goodix - allow specifying the config filename

The config which needs to be send to the controller on some device-models
is model-specific. Allow specifying a model-specific filename through
a device-property, rather then always using a fixed filename.

Note the "goodix,config-name" device-property used by this is
*not* documented in the
Documentation/devicetree/bindings/input/touchscreen/goodix.yaml
device-tree bindings for now.

Not documenting these is intentional. This is done because this code has
only been tested on x86/ACPI so far, where devicetree is not used.
Instead these properties are set through a software-fwnode attached to the
device by the drivers/platform/x86/touchscreen_dmi.c code. This means that
the use of this property for now is purely a kernel-internal thing and
the name/working of the property may still be changed for now.

Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210920150643.155872-6-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c
drivers/input/touchscreen/goodix.h