From patchwork Wed Nov 4 16:24:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320552 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp5568529ilc; Wed, 4 Nov 2020 08:25:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJbIF0gvZlheweSWSfgE2BkbxkmUa1LRUvuVSLlLR+L0E/iIFmjT/Q1qodQx2r+VgUpjoB X-Received: by 2002:a17:906:1e08:: with SMTP id g8mr25470783ejj.358.1604507157628; Wed, 04 Nov 2020 08:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604507157; cv=none; d=google.com; s=arc-20160816; b=k+hEQY7+HJ2ZfBF60HP+cfR8Jp8j5PuNSmO9JgjXMI3FLRxIbD0udym5ianWsOJkpP MjJQSed4RbixOSaSQ3sf3YKtL76E0rQ8FSRbo5K5L2cMyOeXLxihYXl9eLHM4PgWyUkU Mw5sjfXjidGQ8r4ZfHKMFC6clK/U2P2QAi+Ft3jYmnxIS0+fCYA0BbBnCu+62xT8dmho sXG4qgC9/EGpPnTzv4bKTSyslpnuSJYktpxqa7So6i4x3POLMYMfEZUC9CayfLQWzOzu lqnAASirqU32J47Nw5aN08a/vPR0IL8o6OLTIq3dyYj4WbaqjwC5KJsgZ/hOxUMLFhr6 HapQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4GHOp4DltKz3i6bOt37UpUN4Df5qKRn7hwYhsGdTpAY=; b=hpLoxTKTVo8oDtS0umDmDQ4+NV5WmEPmlxNnZaJWQkWwtTr3T9jatNpu6SD/L8Jhgg MeJ3tLMWDL/qGIj5QQ0hw+6CTfbGrKTVz8B3do1rQiD2bSC3spF1A9lqUjJc15XQDInF hj1dQvbeLOajrbQ9U8ZQLdtS1+exnAXQBDuFO4ox/BJM2milBeiRURkTe8FYNDYUuRMo piYSEv6tzVhgcFZJDtjmca9hmyf7BL+uC5pJSlnZ8XOajNSXNN8Yb8Gir9y9Pu8+LAGX 0oZJ4XYYp3l1scK+bnu4nCHeHdDL4PKN0/tJrbPqA8pazms4sffxMcfkNbVB9grkHU9D USxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lzCQLdZX; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si1776273ejk.300.2020.11.04.08.25.57; Wed, 04 Nov 2020 08:25:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lzCQLdZX; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731124AbgKDQZz (ORCPT + 1 other); Wed, 4 Nov 2020 11:25:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730978AbgKDQZD (ORCPT ); Wed, 4 Nov 2020 11:25:03 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED05AC0401C6 for ; Wed, 4 Nov 2020 08:25:01 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id n15so22751073wrq.2 for ; Wed, 04 Nov 2020 08:25:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4GHOp4DltKz3i6bOt37UpUN4Df5qKRn7hwYhsGdTpAY=; b=lzCQLdZX72DPbrzpyO70KLlIhpN4uMbYtfbPZcWzETXAAxP1k6A+EH/fGbjr6jNaYC W9lEPRVXwQOTPZrb0nE9HVkdFt1oDyK2++3HF5hJI7qturNXgt823AurtYoLxyy643sA GLCQhg2Swsp6oLa9HY/H6NmgSFq3I61kHfEeVA53mm+f/3Sl7CZ3OtoKpVbJ9/omVpwL M38A7P+sEH2utR6YOdQ8chuHvsXFIkiHHcGPBrZr/BwD8QHNDb4MCA/Vgo/N/EG4u/Jn TIc3/v0bUHx93B5tcWh5TFBCHAJvg0jbeFLCTH2YbbPSiAfHI1Dv+twed+mbPtEm2ESQ nmdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4GHOp4DltKz3i6bOt37UpUN4Df5qKRn7hwYhsGdTpAY=; b=mD79Drq4/++g+Whpuu5q4BW3g6CtU+MlLYbMXETNaF+CQ10Mbsl1y1e/YJhrMCYsKi v1VrWLI9CpzuT4idQ7nwbtfmWxDxCvTmV4S5HI0+5YPuVTQ3jK+RbPhS1jCwA/82gPSx 2rX7epuP1WzJGHO6qWsqYbXNJ0lQfNTTbZrO8sMsB+mI9RlDHHaXuhfLLDSAQ8OZeycj bhy6BAhY9IpVBTtEtBkvGm3ybtrm2h1ct7rZMfE39gQEcbRwlngeCtHCQ3ReSEPlLPOB tReA3A0VXqKrARtpkK+pLr/G43An00Ob3Y7xeIpFDdMdg9aMAs6QmeOYB9GwF7RTQb4H 88Ew== X-Gm-Message-State: AOAM531NmFAD8sTVVXxJLg14/RJ/8G0egZSfQ6EYMeNH+QJ4kTIbx+1J JhoMf35SfpPLJjFBJBoysoLqgw== X-Received: by 2002:adf:bd86:: with SMTP id l6mr34047834wrh.205.1604507100645; Wed, 04 Nov 2020 08:25:00 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id o129sm3008564wmb.25.2020.11.04.08.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 08:25:00 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Ferruh Yigit , Dmitry Torokhov , "at www.cypress.com" , linux-input@vger.kernel.org Subject: [PATCH 15/20] input: touchscreen: cyttsp4_core: Move 'cyttsp4_tch_abs_string' to the only file that references it Date: Wed, 4 Nov 2020 16:24:22 +0000 Message-Id: <20201104162427.2984742-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104162427.2984742-1-lee.jones@linaro.org> References: <20201104162427.2984742-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Fixes the following W=1 kernel build warning(s): In file included from drivers/input/touchscreen/cyttsp_i2c_common.c:24: drivers/input/touchscreen/cyttsp4_core.h:236:27: warning: ‘cyttsp4_tch_abs_string’ defined but not used [-Wunused-const-variable=] 236 | static const char const cyttsp4_tch_abs_string[] = { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/input/touchscreen/cyttsp4_i2c.c:17: drivers/input/touchscreen/cyttsp4_core.h:236:27: warning: ‘cyttsp4_tch_abs_string’ defined but not used [-Wunused-const-variable=] 236 | static const char * const cyttsp4_tch_abs_string[] = { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/input/touchscreen/cyttsp4_spi.c:17: drivers/input/touchscreen/cyttsp4_core.h:236:27: warning: ‘cyttsp4_tch_abs_string’ defined but not used [-Wunused-const-variable=] 236 | static const char * const cyttsp4_tch_abs_string[] = { | ^~~~~~~~~~~~~~~~~~~~~~ Cc: Ferruh Yigit Cc: Dmitry Torokhov Cc: "at www.cypress.com" Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/touchscreen/cyttsp4_core.c | 14 ++++++++++++++ drivers/input/touchscreen/cyttsp4_core.h | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) -- 2.25.1 diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c index 02a73d9a4defe..dccbcb942fe59 100644 --- a/drivers/input/touchscreen/cyttsp4_core.c +++ b/drivers/input/touchscreen/cyttsp4_core.c @@ -30,6 +30,20 @@ #define CY_CORE_STARTUP_RETRY_COUNT 3 +static const char * const cyttsp4_tch_abs_string[] = { + [CY_TCH_X] = "X", + [CY_TCH_Y] = "Y", + [CY_TCH_P] = "P", + [CY_TCH_T] = "T", + [CY_TCH_E] = "E", + [CY_TCH_O] = "O", + [CY_TCH_W] = "W", + [CY_TCH_MAJ] = "MAJ", + [CY_TCH_MIN] = "MIN", + [CY_TCH_OR] = "OR", + [CY_TCH_NUM_ABS] = "INVALID" +}; + static const u8 ldr_exit[] = { 0xFF, 0x01, 0x3B, 0x00, 0x00, 0x4F, 0x6D, 0x17 }; diff --git a/drivers/input/touchscreen/cyttsp4_core.h b/drivers/input/touchscreen/cyttsp4_core.h index f3e4443594404..6262f6e450751 100644 --- a/drivers/input/touchscreen/cyttsp4_core.h +++ b/drivers/input/touchscreen/cyttsp4_core.h @@ -233,20 +233,6 @@ enum cyttsp4_tch_abs { /* for ordering within the extracted touch data array */ CY_TCH_NUM_ABS }; -static const char * const cyttsp4_tch_abs_string[] = { - [CY_TCH_X] = "X", - [CY_TCH_Y] = "Y", - [CY_TCH_P] = "P", - [CY_TCH_T] = "T", - [CY_TCH_E] = "E", - [CY_TCH_O] = "O", - [CY_TCH_W] = "W", - [CY_TCH_MAJ] = "MAJ", - [CY_TCH_MIN] = "MIN", - [CY_TCH_OR] = "OR", - [CY_TCH_NUM_ABS] = "INVALID" -}; - struct cyttsp4_touch { int abs[CY_TCH_NUM_ABS]; };