]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Input: mms114 - move header file out of I2C realm
authorWolfram Sang <wsa@the-dreams.de>
Mon, 22 May 2017 23:28:42 +0000 (16:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 23 May 2017 00:26:58 +0000 (17:26 -0700)
include/linux/i2c is not for client devices. Move the header file to a
more appropriate location.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/mms114.c
include/linux/i2c/mms114.h [deleted file]
include/linux/platform_data/mms114.h [new file with mode: 0644]

index 1fafc9f57af6c75a7a8a9e9d6b90e016f4e90272..e5eeb6311f7de782ef9bfc03fa290498e76e2c7d 100644 (file)
@@ -11,9 +11,9 @@
 #include <linux/delay.h>
 #include <linux/of.h>
 #include <linux/i2c.h>
-#include <linux/i2c/mms114.h>
 #include <linux/input/mt.h>
 #include <linux/interrupt.h>
+#include <linux/platform_data/mms114.h>
 #include <linux/regulator/consumer.h>
 #include <linux/slab.h>
 
diff --git a/include/linux/i2c/mms114.h b/include/linux/i2c/mms114.h
deleted file mode 100644 (file)
index 5722ebf..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2012 Samsung Electronics Co.Ltd
- * Author: Joonyoung Shim <jy0922.shim@samsung.com>
- *
- * 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 Foundationr
- */
-
-#ifndef __LINUX_MMS114_H
-#define __LINUX_MMS114_H
-
-struct mms114_platform_data {
-       unsigned int x_size;
-       unsigned int y_size;
-       unsigned int contact_threshold;
-       unsigned int moving_threshold;
-       bool x_invert;
-       bool y_invert;
-
-       void (*cfg_pin)(bool);
-};
-
-#endif /* __LINUX_MMS114_H */
diff --git a/include/linux/platform_data/mms114.h b/include/linux/platform_data/mms114.h
new file mode 100644 (file)
index 0000000..5722ebf
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2012 Samsung Electronics Co.Ltd
+ * Author: Joonyoung Shim <jy0922.shim@samsung.com>
+ *
+ * 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 Foundationr
+ */
+
+#ifndef __LINUX_MMS114_H
+#define __LINUX_MMS114_H
+
+struct mms114_platform_data {
+       unsigned int x_size;
+       unsigned int y_size;
+       unsigned int contact_threshold;
+       unsigned int moving_threshold;
+       bool x_invert;
+       bool y_invert;
+
+       void (*cfg_pin)(bool);
+};
+
+#endif /* __LINUX_MMS114_H */