Commit 71f4ecd5 authored by Hans de Goede's avatar Hans de Goede Committed by Dmitry Torokhov

Input: goodix - 2 small fixes for pen support

2 small fixes for pen support

1. Set the id.vendor field for the pen input_dev
2. Fix a typo in a comment
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211212124242.81019-5-hdegoede@redhat.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 84345c61
...@@ -333,6 +333,7 @@ static struct input_dev *goodix_create_pen_input(struct goodix_ts_data *ts) ...@@ -333,6 +333,7 @@ static struct input_dev *goodix_create_pen_input(struct goodix_ts_data *ts)
input->name = "Goodix Active Pen"; input->name = "Goodix Active Pen";
input->phys = "input/pen"; input->phys = "input/pen";
input->id.bustype = BUS_I2C; input->id.bustype = BUS_I2C;
input->id.vendor = 0x0416;
if (kstrtou16(ts->id, 10, &input->id.product)) if (kstrtou16(ts->id, 10, &input->id.product))
input->id.product = 0x1001; input->id.product = 0x1001;
input->id.version = ts->version; input->id.version = ts->version;
...@@ -475,7 +476,7 @@ static void goodix_process_events(struct goodix_ts_data *ts) ...@@ -475,7 +476,7 @@ static void goodix_process_events(struct goodix_ts_data *ts)
if (touch_num == 1 && (point_data[1] & 0x80)) { if (touch_num == 1 && (point_data[1] & 0x80)) {
goodix_ts_report_pen_down(ts, point_data); goodix_ts_report_pen_down(ts, point_data);
goodix_ts_release_keys(ts); goodix_ts_release_keys(ts);
goto sync; /* Release any previousle registered touches */ goto sync; /* Release any previously registered touches */
} else { } else {
goodix_ts_report_pen_up(ts); goodix_ts_report_pen_up(ts);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment