Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp257063pxb; Thu, 12 Nov 2020 03:06:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHJy3Zhu7S8tzh5yu3ArzK8pPxzi4AFAHM8fFsiNujKDR2bFtFCS2bE2UEoYo7AN3yTGeh X-Received: by 2002:a50:fc95:: with SMTP id f21mr4376707edq.383.1605179212830; Thu, 12 Nov 2020 03:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605179212; cv=none; d=google.com; s=arc-20160816; b=akcnLGQJEsU4QsAmfSY8XJOulX7faE0gKjLFGC572sxDIuVUQyuHL54aE1eKqQNnd1 rf8D7S9svx+rCSKJ7rAy9ZLLATBhnQgorTIm2ppg1rOREwMjVaZEbPK4vGXvxO9V0uxp CY0f691iAWaLidhHtdzaY6YMy79kQbVMLAJXjrwjy6/hOF1RNRa0kj9ISVlWX9SZvsGn Lcp3LaAbmc4j6BZjAb8T7VFHzztVICucbciv030hlXUQSYQZSD6NEyf1KljdsL0+EdtA qSct4OOi/t2pB0FNo8ukGXIEdu5JrrRX/dXz6GG247ryfV2E92sVZMKSE6lBrlQsqz/j NaHw== 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=VOfJDj7y+29ZeViL6kV6ywYnxqJxhhS/scmeQ+AwyUU=; b=CAdNIkL4b3SmlMshQgKU0uRpTIiPlg1zfK28cZF/CgOEm0nmELfOLJ7Qxe4GkEOE9R y7Q85lAhgHWDhoDHM2uegiJPOYeZlITMSTeUn/yecllfZ+WAk+Hjjun/hbawhohjZHME II69Fmuq0ARr0Bz3nMCZYaYcO5jWD3DdP4U2gWaiHfzfv3bqGA3/mLzpK0qhJHBQRuk8 UhtvQY9mF3ZFRm/M2Iced7XJBqX1ZemH5ciNMFil9hUKmwP9E70DcfBzz8tOoHq2IDp6 rhsguQFUv8LoumcGyttsvJf06+981Jx9KEp2ftLkVkTcIpsTOQaxRUHFTzTgzrWWAxGe m3Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xnYi8HWP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 c9si3928706edn.152.2020.11.12.03.06.30; Thu, 12 Nov 2020 03:06:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=xnYi8HWP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727223AbgKLLCk (ORCPT + 99 others); Thu, 12 Nov 2020 06:02:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727974AbgKLLCS (ORCPT ); Thu, 12 Nov 2020 06:02:18 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E2F5C0617A7 for ; Thu, 12 Nov 2020 03:02:17 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id 10so4884481wml.2 for ; Thu, 12 Nov 2020 03:02:16 -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=VOfJDj7y+29ZeViL6kV6ywYnxqJxhhS/scmeQ+AwyUU=; b=xnYi8HWPfJhINUl5GughYizx5EulzqcrsMAEAjGJ+xbjtyqE85Yq3lTb/b9WroJOez fIe6z4/au00Bj0AM1zlZXZI9NgPYdk5/+asccsKCvKWT5OnQoKN7HZIwWI2qhXHEYK0M +jvneVxEeh6ociRKLCYbBp7vUDYwpJzFG+pYYR8wOd90y8LAO9eCorbLocrL8HraXRzE pIUHRJGpWvTaD2Leq3GUEX9Az/o3beW+/sVSk46BU8z2D+zKRGZSMZURCUZRvlTfy20n VyJeGGyDzB0kl92q0YiLuMLJ64+4dnAtMd0DdmXP+OU53Ls2YYcRUIjy8GQNmKSJIp2a aJpg== 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=VOfJDj7y+29ZeViL6kV6ywYnxqJxhhS/scmeQ+AwyUU=; b=cA5F1PgNOCIpwNXM1WsD5Hd1FyVEj8dC49xw6Bz/S8VMdLZEWt6sBCptkfcEVdmBwj 014p1KIQKUoWvoFbzJWhHxpSq1hEat5FP8aOxMiHnzkz8OfWnsLmYSFQpjkAVwB+DhlQ AVMzj2gkvD/GPUWyhNcCinheitjIdymHEOJXS3DjGr6DlPEk0SDm57i4QplliGShM4xr iETus81k2vPM6LfqkQzhBAwSBqqOzMUlfPywLCe9OQy3gNJO6GJ8IBWPoIDRYwOTiK7F amcPHyVV8U7bDMQ8P1GuyDmuO8FCs+kngbvinYmVOI4gvkKLkfYQEKyqvYMFDZbGR/2q KUEw== X-Gm-Message-State: AOAM5332XdpOK5QO6LdgaZMMXp5hzM1+bqAxHO3e1pN+aXwg+l/rMN6x S+pHeN40XSDbCNVxmzhfywqisg== X-Received: by 2002:a1c:1c1:: with SMTP id 184mr9229111wmb.16.1605178935753; Thu, 12 Nov 2020 03:02:15 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id x81sm6515329wmg.5.2020.11.12.03.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 03:02:15 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Sangwon Jee , Dmitry Torokhov , Henrik Rydberg , linux-input@vger.kernel.org Subject: [PATCH 06/15] input: touchscreen: melfas_mip4: Remove a bunch of unused variables Date: Thu, 12 Nov 2020 11:01:55 +0000 Message-Id: <20201112110204.2083435-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112110204.2083435-1-lee.jones@linaro.org> References: <20201112110204.2083435-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/input/touchscreen/melfas_mip4.c: In function ‘mip4_report_touch’: drivers/input/touchscreen/melfas_mip4.c:474:5: warning: variable ‘size’ set but not used [-Wunused-but-set-variable] drivers/input/touchscreen/melfas_mip4.c:472:5: warning: variable ‘pressure_stage’ set but not used [-Wunused-but-set-variable] drivers/input/touchscreen/melfas_mip4.c:469:7: warning: variable ‘palm’ set but not used [-Wunused-but-set-variable] drivers/input/touchscreen/melfas_mip4.c:468:7: warning: variable ‘hover’ set but not used [-Wunused-but-set-variable] Cc: Sangwon Jee Cc: Dmitry Torokhov Cc: Henrik Rydberg Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/touchscreen/melfas_mip4.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/input/touchscreen/melfas_mip4.c b/drivers/input/touchscreen/melfas_mip4.c index f67efdd040b24..9c98759098c7a 100644 --- a/drivers/input/touchscreen/melfas_mip4.c +++ b/drivers/input/touchscreen/melfas_mip4.c @@ -465,13 +465,9 @@ static void mip4_report_keys(struct mip4_ts *ts, u8 *packet) static void mip4_report_touch(struct mip4_ts *ts, u8 *packet) { int id; - bool hover; - bool palm; bool state; u16 x, y; - u8 pressure_stage = 0; u8 pressure; - u8 size; u8 touch_major; u8 touch_minor; @@ -480,14 +476,11 @@ static void mip4_report_touch(struct mip4_ts *ts, u8 *packet) case 1: /* Touch only */ state = packet[0] & BIT(7); - hover = packet[0] & BIT(5); - palm = packet[0] & BIT(4); id = (packet[0] & 0x0F) - 1; x = ((packet[1] & 0x0F) << 8) | packet[2]; y = (((packet[1] >> 4) & 0x0F) << 8) | packet[3]; pressure = packet[4]; - size = packet[5]; if (ts->event_format == 0) { touch_major = packet[5]; touch_minor = packet[5]; @@ -501,14 +494,10 @@ static void mip4_report_touch(struct mip4_ts *ts, u8 *packet) default: /* Touch + Force(Pressure) */ id = (packet[0] & 0x0F) - 1; - hover = packet[1] & BIT(2); - palm = packet[1] & BIT(1); state = packet[1] & BIT(0); x = ((packet[2] & 0x0F) << 8) | packet[3]; y = (((packet[2] >> 4) & 0x0F) << 8) | packet[4]; - size = packet[6]; - pressure_stage = (packet[7] & 0xF0) >> 4; pressure = ((packet[7] & 0x0F) << 8) | packet[8]; touch_major = packet[9]; -- 2.25.1