Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp883134imj; Fri, 15 Feb 2019 08:20:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IamY7V7sSht8GDcmorpl4yrR+S6cpxau75wBx9NmeD3qtMK7eWzeEGw0BERgSrbS2Lg2yG9 X-Received: by 2002:a17:902:6b87:: with SMTP id p7mr11178758plk.282.1550247634830; Fri, 15 Feb 2019 08:20:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247634; cv=none; d=google.com; s=arc-20160816; b=Ohw6n0jbVqDCygcqSSVPBkRhpHwXr7OIcYQzobEHLvd9e2Hp0fMGnWBiHY9KWCdxFa gEr38E647CPMnHab38uacyTy2Nitjjc7lzHnGnrnFPQBFhBJqKqOXSbDTw6gifckvHhS 6l808cTNsJMQun73Lm8O+KrDllkKZbXa2cLOh3yVI6UGHwGE7cUNUKJmllKewCYN3zUW xTkuSSwXmlsQuHiZ/nzsshC7mXYjPfEJhJIR/psjjdfK7cBcpzBPaVxL002blGx7m/ES fovLOajn/Y74zs7vs35MH+XhXhz93IUGHyMy8XWSNXhYwgJeANGFgRI2cNNbQqwTU3jv bwFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=ionhh7Zx1ysYYLN7tbZEn2HDjWuSj/3J3TeL7XgDMdU=; b=HOeB4pQmXvCZNG9USeeBSRyRz18B2n4jLpRMVcg5XXUBqZVuvibkjPeKhJx1PxU7zN uUOy2exichMd4yLWY2bE9H/DSCvc69amIoEiCrgWJlDLU29UHF/6aOE37T/ZxreutWEk s0GVIR0tDP77QbHP751vXhb8mzQcaLO60YHYaHwqZZgPtDJEicBrP8DDovPo2VWUDCz6 yJ3GR6oxgwoehvUqw1bAVUuEUjX2O5eCWceRl7Jq+YL2i9oLOtdzGqQ9MmcUFbSDVhUT BnzjY+7XnkrkGMxoGE91ReateOJzEHnowe6YJsQJu2r+nCaQx7HScL/SMaSBp6xjp7x/ FyVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w31si6051634pla.308.2019.02.15.08.20.19; Fri, 15 Feb 2019 08:20:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437199AbfBOOMK (ORCPT + 99 others); Fri, 15 Feb 2019 09:12:10 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:44673 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726838AbfBOOL7 (ORCPT ); Fri, 15 Feb 2019 09:11:59 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 7154DFB04; Fri, 15 Feb 2019 15:11:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fKVRYMpwFlcI; Fri, 15 Feb 2019 15:11:56 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 529B748DC2; Fri, 15 Feb 2019 15:11:53 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Dmitry Torokhov , Rob Herring , Mark Rutland , Bastien Nocera , Matthias Brugger , =?UTF-8?q?Guido=20G=C3=BCnther?= , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v3 3/3] input: goodix: Print values in case of inconsistencies Date: Fri, 15 Feb 2019 15:11:53 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "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 --- drivers/input/touchscreen/goodix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1