.model = 2102,
.swap_xy = 0,
.x_min = 0,
- .x_max = 481,
+ .x_max = 480,
.y_min = 0,
- .y_max = 801,
+ .y_max = 800,
.gpio_reset = ili2102_GPIO_RESET,
.gpio_reset_active_low = 1,
.gpio_pendown = ili2102_GPIO_INT,
if((*y< ts->y_min) || (*y > ts->y_max))
return -1;
+ /*android do not support min and max value*/
+ if(*x == ts->x_min)
+ *x = ts->x_min + 1;
+ if(*y == ts->y_min)
+ *y = ts->y_min + 1;
+ if(*x == ts->x_max)
+ *x = ts->x_max - 1;
+ if(*y == ts->y_max)
+ *y = ts->y_max - 1;
+
+
return 0;
}
static int ili2102_init_panel(struct ili2102_ts_data *ts)