Advertisement
Guest User

Untitled

a guest
Oct 14th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. alex@alexhome> git diff -b origin/wip/lichee3-sunxi/import-sun5i drivers/input/touchscreen/ft5x_ts.c /media/archive3/a10-dev/linux-sunxi
  2. diff --git a/drivers/input/touchscreen/ft5x_ts.c b/drivers/input/touchscreen/ft5x_ts.c
  3. index b74ad5c..b113134 100644
  4. --- a/drivers/input/touchscreen/ft5x_ts.c
  5. +++ b/drivers/input/touchscreen/ft5x_ts.c
  6. @@ -110,7 +110,11 @@ static int key_val = 0;
  7. #endif
  8. ///////////////////////////////////////////////
  9. //specific tp related macro: need be configured for specific tp
  10. -#define CTP_IRQ_NO (gpio_int_info[0].port_num)
  11. +#ifdef CONFIG_ARCH_SUN4I
  12. +#define CTP_IRQ_NO (IRQ_EINT21)
  13. +#elif defined(CONFIG_ARCH_SUN5I)
  14. +#define CTP_IRQ_NO (IRQ_EINT9)
  15. +#endif
  16.  
  17. #define CTP_IRQ_MODE (NEGATIVE_EDGE)
  18. #define CTP_NAME FT5X_NAME
  19. @@ -199,7 +203,7 @@ static void ctp_clear_penirq(void)
  20. * 0: success;
  21. * others: fail;
  22. */
  23. -static int ctp_set_irq_mode(char *major_key , char *subkey, ext_int_mode int_mode)
  24. +static int ctp_set_irq_mode(char *major_key, char *subkey, ext_int_mode int_mode)
  25. {
  26. int ret = 0;
  27. __u32 reg_num = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement