Hi all,
I am working on a project with a custom linux board(
https://www.emcraft.com/products/777) and I am looking to integrate a touch-screen device with it(based on silead gsl1680). I referred to this patch
https://patchwork.kernel.org/patch/9172645/ and did the following things with a hope to compile the code with the custom TS.
1) add silead_gsl1680.txt in -> /Documentation/devicetree/bindings/input/touchscreen
2) change Kconfig found in -> drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig
3) change makefile in -> drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile
4) add silead.c in -> /drivers/input/touchscreen/silead.c b/drivers/input/touchscreen/silead.c
5) Also added the relevant information in the .kernel file ==> CONFIG_TOUCHSCREEN_SILEAD=y and commented out the goodix config.
However, I get an error saying
Code:
drivers/input/touchscreen/silead.c:79:32: error: field 'prop' has incomplete type
struct touchscreen_properties prop;
^
drivers/input/touchscreen/silead.c: In function 'silead_ts_request_input_dev':
drivers/input/touchscreen/silead.c:106:2: error: too many arguments to function 'touchscreen_parse_properties'
touchscreen_parse_properties(data->input, true, &data->prop);
I asked this question to the BSP vendor and he said that apparently the driver is not compatible with the Emcraft kernel version, so I would have to make them manually compatible("backporting").
How do I go about doing that?
Also, my LCD vendor has provided another set of .c and .h files for this particular LCD screen, but after putting them in my linux tree, I get an error saying
Code:
fatal error: linux/earlysuspend.h: No such file or directory. Compilation terminated
I am not sure how to go about this stuff. Any pointers would be very much appreciated.
Thanks