ARM: s3c24xx: ts: include platform data header
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 4 Aug 2020 19:26:52 +0000 (21:26 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 17 Aug 2020 16:54:33 +0000 (18:54 +0200)
Include platform_data/touchscreen-s3c2410.h header in the touchscreen
code to bring the prototypes of defined functions and fix W=1 compile
warning:

    arch/arm/mach-s3c24xx/setup-ts.c:24:6: warning: no previous prototype for 's3c24xx_ts_cfg_gpio' [-Wmissing-prototypes]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/setup-ts.c

index 53a14d4f48520d80334876f1453a0f5825cea090..bf1a7fcf465f1fe1a9bef254b45691862cb1926c 100644 (file)
@@ -10,6 +10,8 @@
 
 struct platform_device; /* don't need the contents */
 
+#include <linux/platform_data/touchscreen-s3c2410.h>
+
 #include <plat/gpio-cfg.h>
 #include <mach/hardware.h>
 #include <mach/gpio-samsung.h>