Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1c00aa5 authored by Guido Günther's avatar Guido Günther Committed by Dmitry Torokhov
Browse files

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: default avatarGuido Günther <agx@sigxcpu.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 1a3d1306
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;