From e7bae82845798568c63dacc1b5321b3a67e594b2 Mon Sep 17 00:00:00 2001 From: Luo Wei Date: Mon, 17 Apr 2023 11:28:53 +0800 Subject: [PATCH] input: touchscreen: ili210x: add location info for multi-touch Signed-off-by: Luo Wei Change-Id: Ic096a4ef096e3c1ae186922df0a8cc60185b897d --- drivers/input/touchscreen/ili210x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c index f437eefec94a..710709f325a9 100644 --- a/drivers/input/touchscreen/ili210x.c +++ b/drivers/input/touchscreen/ili210x.c @@ -267,6 +267,7 @@ static const struct ili2xxx_chip ili251x_chip = { .parse_touch_data = ili251x_touchdata_to_coords, .continue_polling = ili251x_check_continue_polling, .max_touches = 10, + .resolution = 16383, .has_calibrate_reg = true, .has_pressure_reg = true, }; @@ -441,6 +442,7 @@ static int ili210x_i2c_probe(struct i2c_client *client, /* Setup input device */ input->name = "ILI210x Touchscreen"; + input->phys = devm_kasprintf(dev, GFP_KERNEL, "ili210x-%s/input0", dev_name(dev)); input->id.bustype = BUS_I2C; /* Multi touch */