瀏覽代碼

touch: goodix: set parent of touch device

Set parent of touch device so that input device node
path can be obtained by TUI App from /proc/bus/input.

Change-Id: If3cc14e8d2ae64ff0d8f62ab523c089b9b0dd74a
Signed-off-by: Raviteja Tamatam <[email protected]>
Raviteja Tamatam 3 年之前
父節點
當前提交
536392bcad
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      goodix_berlin_driver/goodix_ts_core.c

+ 1 - 0
goodix_berlin_driver/goodix_ts_core.c

@@ -1470,6 +1470,7 @@ static int goodix_ts_input_dev_config(struct goodix_ts_core *core_data)
 	input_dev->id.product = 0xDEAD;
 	input_dev->id.vendor = 0xBEEF;
 	input_dev->id.version = 10427;
+	input_dev->dev.parent = core_data->bus->dev;
 
 	set_bit(EV_SYN, input_dev->evbit);
 	set_bit(EV_KEY, input_dev->evbit);