Loading drivers/input/touchscreen/st/fts.c +8 −0 Original line number Diff line number Diff line Loading @@ -2791,6 +2791,11 @@ static void fts_enter_pointer_event_handler(struct fts_ts_info *info, if (z == 0) z = 10; if (info->bdata->x_flip) x = X_AXIS_MAX - x; if (info->bdata->y_flip) y = Y_AXIS_MAX - y; if (x == X_AXIS_MAX) x--; Loading Loading @@ -4346,6 +4351,9 @@ static int parse_dt(struct device *dev, bdata->reset_gpio = GPIO_NOT_DEFINED; } bdata->x_flip = of_property_read_bool(np, "st,x-flip"); bdata->y_flip = of_property_read_bool(np, "st,y-flip"); return OK; } Loading drivers/input/touchscreen/st/fts.h +2 −0 Original line number Diff line number Diff line Loading @@ -183,6 +183,8 @@ extern struct mutex gestureMask_mutex; #endif struct fts_i2c_platform_data { bool x_flip; bool y_flip; int (*power)(bool on); int irq_gpio; int reset_gpio; Loading Loading
drivers/input/touchscreen/st/fts.c +8 −0 Original line number Diff line number Diff line Loading @@ -2791,6 +2791,11 @@ static void fts_enter_pointer_event_handler(struct fts_ts_info *info, if (z == 0) z = 10; if (info->bdata->x_flip) x = X_AXIS_MAX - x; if (info->bdata->y_flip) y = Y_AXIS_MAX - y; if (x == X_AXIS_MAX) x--; Loading Loading @@ -4346,6 +4351,9 @@ static int parse_dt(struct device *dev, bdata->reset_gpio = GPIO_NOT_DEFINED; } bdata->x_flip = of_property_read_bool(np, "st,x-flip"); bdata->y_flip = of_property_read_bool(np, "st,y-flip"); return OK; } Loading
drivers/input/touchscreen/st/fts.h +2 −0 Original line number Diff line number Diff line Loading @@ -183,6 +183,8 @@ extern struct mutex gestureMask_mutex; #endif struct fts_i2c_platform_data { bool x_flip; bool y_flip; int (*power)(bool on); int irq_gpio; int reset_gpio; Loading