Merge "input: touchscreen: nt36xxx: Set parent of touch device"

This commit is contained in:
qctecmdr 2021-02-12 05:23:39 -08:00 • committed by Gerrit - the friendly Code Review server
commit e7cefa2323
2 changed files with 3 additions and 0 deletions

View file

@ -2597,6 +2597,7 @@ static int32_t nvt_ts_late_probe_sub(struct i2c_client *client,
ts->input_dev->name = NVT_TS_NAME;
ts->input_dev->phys = ts->phys;
ts->input_dev->id.bustype = BUS_I2C;
ts->input_dev->dev.parent = ts->dev;
//---register input device---
ret = input_register_device(ts->input_dev);
@ -2811,6 +2812,7 @@ static int32_t nvt_ts_probe(struct i2c_client *client,
}
ts->client = client;
ts->dev = &client->dev;
i2c_set_clientdata(client, ts);
//---parse dts---

View file

@ -162,6 +162,7 @@ struct trusted_touch_vm_info {
struct nvt_ts_data {
struct i2c_client *client;
struct input_dev *input_dev;
struct device *dev;
struct delayed_work nvt_fwu_work;
uint16_t addr;
int8_t phys[32];