mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "input: touchscreen: nt36xxx: Set parent of touch device"
This commit is contained in:
commit
e7cefa2323
2 changed files with 3 additions and 0 deletions
|
|
@ -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---
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue