Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alex@alexhome> git diff -b origin/wip/lichee3-sunxi/import-sun5i drivers/input/touchscreen/ft5x_ts.c /media/archive3/a10-dev/linux-sunxi
- diff --git a/drivers/input/touchscreen/ft5x_ts.c b/drivers/input/touchscreen/ft5x_ts.c
- index b74ad5c..b113134 100644
- --- a/drivers/input/touchscreen/ft5x_ts.c
- +++ b/drivers/input/touchscreen/ft5x_ts.c
- @@ -110,7 +110,11 @@ static int key_val = 0;
- #endif
- ///////////////////////////////////////////////
- //specific tp related macro: need be configured for specific tp
- -#define CTP_IRQ_NO (gpio_int_info[0].port_num)
- +#ifdef CONFIG_ARCH_SUN4I
- +#define CTP_IRQ_NO (IRQ_EINT21)
- +#elif defined(CONFIG_ARCH_SUN5I)
- +#define CTP_IRQ_NO (IRQ_EINT9)
- +#endif
- #define CTP_IRQ_MODE (NEGATIVE_EDGE)
- #define CTP_NAME FT5X_NAME
- @@ -199,7 +203,7 @@ static void ctp_clear_penirq(void)
- * 0: success;
- * others: fail;
- */
- -static int ctp_set_irq_mode(char *major_key , char *subkey, ext_int_mode int_mode)
- +static int ctp_set_irq_mode(char *major_key, char *subkey, ext_int_mode int_mode)
- {
- int ret = 0;
- __u32 reg_num = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement