fix sensors include file err
authorguoyi <gy@rock-chips.com>
Wed, 5 Mar 2014 07:33:25 +0000 (15:33 +0800)
committerguoyi <gy@rock-chips.com>
Wed, 5 Mar 2014 10:14:22 +0000 (18:14 +0800)
24 files changed:
drivers/input/sensors/accel/dmard10.c
drivers/input/sensors/accel/kxtik.c
drivers/input/sensors/accel/kxtj9.c
drivers/input/sensors/accel/lis3dh.c
drivers/input/sensors/accel/lsm303d.c
drivers/input/sensors/accel/mma7660.c
drivers/input/sensors/accel/mma8452.c
drivers/input/sensors/angle/angle_kxtik.c
drivers/input/sensors/angle/angle_lis3dh.c
drivers/input/sensors/compass/ak09911.c
drivers/input/sensors/compass/ak8963.c
drivers/input/sensors/compass/ak8975.c
drivers/input/sensors/gyro/ewtsa.c
drivers/input/sensors/gyro/l3g20d.c
drivers/input/sensors/gyro/l3g4200d.c
drivers/input/sensors/lsensor/cm3217.c
drivers/input/sensors/lsensor/cm3232.c
drivers/input/sensors/lsensor/isl29023.c
drivers/input/sensors/lsensor/ls_al3006.c
drivers/input/sensors/lsensor/ls_stk3171.c
drivers/input/sensors/pressure/pr_ms5607.c
drivers/input/sensors/psensor/ps_al3006.c
drivers/input/sensors/psensor/ps_stk3171.c
drivers/input/sensors/temperature/tmp_ms5607.c

index 737c34957ad1e0b40d80cdb46f2c26b83c18b20b..f695818c3009ae176f6b7dc59eb31d51968dd2aa 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 69f17eb9e77ecdf83640cb66a8d8bade3492467c..dd76267d71278045a2a55a5a5375e4048d43b6ba 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>
 #include <linux/workqueue.h>
 #include <linux/freezer.h>
-#include <mach/gpio.h>
-#include <mach/board.h> 
+#include <linux/of_gpio.h>
 #ifdef CONFIG_HAS_EARLYSUSPEND
 #include <linux/earlysuspend.h>
 #endif
index 13004f336411539ebd5f6e4b497de406eb4b5ec3..5831288ccde8e5b5f87054eff93fcc6e6907532d 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>
 #include <linux/workqueue.h>
 #include <linux/freezer.h>
-#include <mach/gpio.h>
-#include <mach/board.h> 
+#include <linux/of_gpio.h>
 #ifdef CONFIG_HAS_EARLYSUSPEND
 #include <linux/earlysuspend.h>
 #endif
index 566de2155546196d39fb5f80812c13c64060177c..f74ec77463ac687829278e4d32c8e9d75e73d573 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>
 #include <linux/workqueue.h>
 #include <linux/freezer.h>
-#include <mach/gpio.h>
-#include <mach/board.h> 
+#include <linux/of_gpio.h>
 #ifdef CONFIG_HAS_EARLYSUSPEND
 #include <linux/earlysuspend.h>
 #endif
index b7ed9263cef4e6aa9260ec6eb41293f95a97e798..013ac39cf9da71902d16de03c6048a10c4e9ba1f 100755 (executable)
@@ -26,8 +26,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 5b97de9b3e8ca8ffe12d1592c7b2dd2f50210f45..7955ee400b1e5d245efb4d6a1b933a5cc983be06 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>
 #include <linux/workqueue.h>
 #include <linux/freezer.h>
-#include <mach/gpio.h>
-#include <mach/board.h> 
+#include <linux/of_gpio.h>
 #ifdef CONFIG_HAS_EARLYSUSPEND
 #include <linux/earlysuspend.h>
 #endif
index c8f5562efda5f0f1197543ed0ac1d1ca2bb0be34..5a828e723bccaead6943613106ba9e51d93fd370 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>
 #include <linux/workqueue.h>
 #include <linux/freezer.h>
-#include <mach/gpio.h>
-#include <mach/board.h> 
+#include <linux/of_gpio.h>
 #ifdef CONFIG_HAS_EARLYSUSPEND
 #include <linux/earlysuspend.h>
 #endif
index f9aef1b285f26aa90985fb9015aa93a39ed31d41..a84e41bdac44b23367750bd1337c3aa8d76bea49 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>
 #include <linux/workqueue.h>
 #include <linux/freezer.h>
-#include <mach/gpio.h>
-#include <mach/board.h> 
+#include <linux/of_gpio.h>
 #ifdef CONFIG_HAS_EARLYSUSPEND
 #include <linux/earlysuspend.h>
 #endif
@@ -194,11 +193,11 @@ static int sensor_init(struct i2c_client *client)
 
 /*
 BIT 4 IEA sets the polarity of the physical interrupt pin (7)
-IEA = 0 ¿ polarity of the physical interrupt pin (7) is active low
-IEA = 1 ¿ polarity of the physical interrupt pin (7) is active high
+IEA = 0 ? polarity of the physical interrupt pin (7) is active low
+IEA = 1 ? polarity of the physical interrupt pin (7) is active high
 BIT 3 IEL sets the response of the physical interrupt pin (7)
-IEL = 0 ¿ the physical interrupt pin (7) latches until it is cleared by reading INT_REL
-IEL = 1 ¿ the physical interrupt pin (7) will transmit one pulse with a period of 0.03 - 0.05ms
+IEL = 0 ? the physical interrupt pin (7) latches until it is cleared by reading INT_REL
+IEL = 1 ? the physical interrupt pin (7) will transmit one pulse with a period of 0.03 - 0.05ms
 */
                if (id_data == KXTIK_DEVID_1004)
                result = sensor_write_reg(client, KXTIK_INT_CTRL_REG1, 0x34);//enable int,active high,need read INT_REL
@@ -328,7 +327,7 @@ static int sensor_report_value(struct i2c_client *client)
        {
                angle_report_value(client, &axis);
 
-               /* »¥³âµØ»º´æÊý¾Ý. */
+               /* ?????ػ???????. */
                mutex_lock(&(sensor->data_mutex) );
                sensor->axis = axis;
                mutex_unlock(&(sensor->data_mutex) );
index f37e54ef7e3a980e5e20a2030235a821bcf7f509..7442a3a198f48397d9b29c13fbb8330b388b76ea 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>
 #include <linux/workqueue.h>
 #include <linux/freezer.h>
-#include <mach/gpio.h>
-#include <mach/board.h> 
+#include <linux/of_gpio.h>
 #ifdef CONFIG_HAS_EARLYSUSPEND
 #include <linux/earlysuspend.h>
 #endif
index 42636485fa47b21749c33a62e5054510c303dd90..ac7c681d763fcca3dbcb9a812b70e3bbb21888ea 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 0f78192682fa7028203e3660bbb65123144f59a4..318377e03395f4721bd5a9228077233a2bb109ca 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 585583d3f021c0e34c0e87e1cda13cbc5011f8c3..1ed0f29712ab421f7fc2d2cf495d4c3ae719cae2 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 5c184f7c79e105476f9f3556402ec605c81be1be..436a3710755a638eb702b3de32bc8c78ca450d89 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 68c23e2db8e0d9d5f488848ac67be3d0b8b2df1f..1b7bf91025fa7021f3441eadb90340bc869dd370 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 11870cd828dc2d6c38651e5901ae2eb1f4ab3b5b..1071b971faf8f2f1ab303482b1f3fbac12723426 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index dd20d5fb9334b83ca8040acc17aea388f8b5669d..5edf40f30a2a349c3138f84c8ed33a253d025e24 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 65b234bd383538f468a803b7188247e439124b09..013b67015aa431f0a904939b7a023fbc39e3eb27 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index b70e8ae5a5fa75e7c076a9e9f98c7c8d5de2765c..269740c3f744f374cb3ae6c850c7c87ed3bb5d1d 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 8699c81e0850018fa6cbba310e3f17dd6252ec0c..6fbf1a3e01f04c58d952d5b529b135725b106264 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index 9aa4bbc732f3ca63c9de93a6e30ec2be35ef2872..4c8b582b10f1629b2a1d5c8b0f77b488307c6b4f 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index af865a2277257eecdb314fdeba9ba3780693e97f..66f4fe07d5e528b96b63ba1ab100009ea3158b39 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index f8090d56127e4c551aeb6bcd2c01bf46d0c5b584..cf679809f98bb5d07fe5a8e1184ab5709b007a2a 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index ce925d082839dc51d2211679fad2e9d15ed57599..6374585bb3ad018eb6973962c7e25eff2639e31d 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r
index ed5be250fc30070bf517e78426e7fb2d0d11a7e6..015386adef5bc36feb2ad9dcd8d4a82e3ccb81b7 100755 (executable)
@@ -25,8 +25,7 @@
 #include <linux/input.h>\r
 #include <linux/workqueue.h>\r
 #include <linux/freezer.h>\r
-#include <mach/gpio.h>\r
-#include <mach/board.h> \r
+#include <linux/of_gpio.h>\r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 #include <linux/earlysuspend.h>\r
 #endif\r