Skip to contentSkip to conversation

ARM: Samsung: Moving a touchscreen related header file to plat-samsung

PATCH Superseded Kukjin Kim 1 participant 1 message May 7, 2010

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Kukjin Kim

author
#0 lore raw

PATCH 2/6 ARM: Samsung: Moving a touchscreen related header file to plat-samsung

From: Naveen Krishna <[email protected]>

As code can be reused by touchscreens on all Samsung SoCs Also makes required modifications in some machines to avoid build breaks.

---
 arch/arm/mach-s3c2410/include/mach/ts.h |   21 ---------------------
 arch/arm/mach-s3c2410/mach-h1940.c      |    2 +-
 arch/arm/plat-s3c24xx/devs.c            |    2 +-
 arch/arm/plat-samsung/include/plat/ts.h |   21 +++++++++++++++++++++
 drivers/input/touchscreen/s3c2410_ts.c  |    2 +-
 5 files changed, 24 insertions(+), 24 deletions(-)
 delete mode 100644 arch/arm/mach-s3c2410/include/mach/ts.h
 create mode 100644 arch/arm/plat-samsung/include/plat/ts.h
arch/arm/mach-s3c2410/include/mach/ts.h deleted +0 -21
deleted file mode 100644
index dc36170..0000000
@@ -1,21 +0,0 @@
-/* linux/include/asm/arch-s3c2410/ts.h
- *
- * Copyright (c) 2005 Arnaud Patard <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
-*/
-
-#ifndef __ASM_ARM_TS_H
-#define __ASM_ARM_TS_H
-
-struct s3c2410_ts_mach_info {
-       int             delay;
-       int             presc;
-       int             oversampling_shift;
-};
-
-extern void s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *);
-
-#endif /* __ASM_ARM_TS_H */
arch/arm/mach-s3c2410/mach-h1940.c +1 -1
index fbedd07..a8575a6 100644
@@ -46,7 +46,7 @@
 #include <mach/h1940.h>
 #include <mach/h1940-latch.h>
 #include <mach/fb.h>
-#include <mach/ts.h>
+#include <plat/ts.h>
 #include <plat/udc.h>
 #include <plat/iic.h>
 
arch/arm/plat-s3c24xx/devs.c +1 -1
index 8c6de1c..06c22b1 100644
@@ -38,7 +38,7 @@
 #include <plat/cpu.h>
 #include <plat/regs-spi.h>
 
-#include <mach/ts.h>
+#include <plat/ts.h>
 
 /* Serial port registrations */
 
arch/arm/plat-samsung/include/plat/ts.h new file +21 -0
new file mode 100644
index 0000000..954b695
@@ -0,0 +1,21 @@
+/* linux/arch/arm/plat-samsung/include/plat/ts.h
+ *
+ * Copyright (c) 2005 Arnaud Patard <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+*/
+
+#ifndef __ASM_ARM_TS_H
+#define __ASM_ARM_TS_H
+
+struct s3c2410_ts_mach_info {
+	int	delay;
+	int	presc;
+	int	oversampling_shift;
+};
+
+extern void s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *);
+
+#endif /* __ASM_ARM_TS_H */
drivers/input/touchscreen/s3c2410_ts.c +1 -1
index 3755a47..ba4d1e8 100644
@@ -40,7 +40,7 @@
 #include <plat/regs-adc.h>
 
 #include <mach/regs-gpio.h>
-#include <mach/ts.h>
+#include <plat/ts.h>
 
 #define TSC_SLEEP  (S3C2410_ADCTSC_PULL_UP_DISABLE | S3C2410_ADCTSC_XY_PST(0))
 
Signature · 1 line
1.6.6.1