diff options
author | Guido Günther <agx@sigxcpu.org> | 2019-02-16 23:04:43 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-02-16 23:08:09 -0800 |
commit | c1c00aa53a636d635d9bfad15652fa0694b54f9d (patch) | |
tree | c06464578cd19ba640c8650dd4c6153c8d2f0e90 /drivers/input | |
parent | 1a3d1306ff3ea414309b1c282eba4ae2431ff4a2 (diff) | |
download | linux-c1c00aa53a636d635d9bfad15652fa0694b54f9d.tar.gz linux-c1c00aa53a636d635d9bfad15652fa0694b54f9d.tar.bz2 linux-c1c00aa53a636d635d9bfad15652fa0694b54f9d.zip |
Input: goodix - print values in case of inconsistencies
"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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/goodix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 47b1ced41576..f57d82220a88 100644 --- 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; |