#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
#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
#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
#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
#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
#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
#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
#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
/*
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
{
angle_report_value(client, &axis);
- /* »¥³âµØ»º´æÊý¾Ý. */
+ /* ?????ػ???????. */
mutex_lock(&(sensor->data_mutex) );
sensor->axis = axis;
mutex_unlock(&(sensor->data_mutex) );
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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
#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