|
@@ -37,6 +37,7 @@
|
|
#include <linux/gpio.h>
|
|
#include <linux/gpio.h>
|
|
#include <linux/of_gpio.h>
|
|
#include <linux/of_gpio.h>
|
|
#include <linux/input/mt.h>
|
|
#include <linux/input/mt.h>
|
|
|
|
+#include <linux/input/touchscreen.h>
|
|
#include <linux/input/edt-ft5x06.h>
|
|
#include <linux/input/edt-ft5x06.h>
|
|
|
|
|
|
#define MAX_SUPPORT_POINTS 5
|
|
#define MAX_SUPPORT_POINTS 5
|
|
@@ -1044,6 +1045,10 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client,
|
|
0, tsdata->num_x * 64 - 1, 0, 0);
|
|
0, tsdata->num_x * 64 - 1, 0, 0);
|
|
input_set_abs_params(input, ABS_MT_POSITION_Y,
|
|
input_set_abs_params(input, ABS_MT_POSITION_Y,
|
|
0, tsdata->num_y * 64 - 1, 0, 0);
|
|
0, tsdata->num_y * 64 - 1, 0, 0);
|
|
|
|
+
|
|
|
|
+ if (!pdata)
|
|
|
|
+ touchscreen_parse_of_params(input);
|
|
|
|
+
|
|
error = input_mt_init_slots(input, MAX_SUPPORT_POINTS, 0);
|
|
error = input_mt_init_slots(input, MAX_SUPPORT_POINTS, 0);
|
|
if (error) {
|
|
if (error) {
|
|
dev_err(&client->dev, "Unable to init MT slots.\n");
|
|
dev_err(&client->dev, "Unable to init MT slots.\n");
|