Przeglądaj źródła

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 lat temu
rodzic
commit
536392bcad
1 zmienionych plików z 1 dodań i 0 usunięć
  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);