projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a3d130
)
Input: goodix - print values in case of inconsistencies
author
Guido Günther
<agx@sigxcpu.org>
Sun, 17 Feb 2019 07:04:43 +0000
(23:04 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sun, 17 Feb 2019 07:08:09 +0000
(23:08 -0800)
"Invalid config" gives little idea what's wrong. Print the values that
must not be 0 so we know which ones are off.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/goodix.c
b/drivers/input/touchscreen/goodix.c
index 47b1ced41576a5373b2a4cc5f61f862b23187ffd..f57d82220a881cca3bef6f76be902e4792dbabda 100644
(file)
--- a/
drivers/input/touchscreen/goodix.c
+++ b/
drivers/input/touchscreen/goodix.c
@@
-693,7
+693,9
@@
static int goodix_configure_dev(struct goodix_ts_data *ts)
touchscreen_parse_properties(ts->input_dev, true, &ts->prop);
if (!ts->prop.max_x || !ts->prop.max_y || !ts->max_touch_num) {
- dev_err(&ts->client->dev, "Invalid config, using defaults\n");
+ dev_err(&ts->client->dev,
+ "Invalid config (%d, %d, %d), using defaults\n",
+ ts->prop.max_x, ts->prop.max_y, ts->max_touch_num);
ts->prop.max_x = GOODIX_MAX_WIDTH - 1;
ts->prop.max_y = GOODIX_MAX_HEIGHT - 1;
ts->max_touch_num = GOODIX_MAX_CONTACTS;