Message ID | 20240201115320.684-3-jirislaby@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-48043-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp92599dyb; Thu, 1 Feb 2024 03:54:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHeSdb3Z8U96mXZFeiOfiPy2m+GaJbfkxuKNs2G9shmdEpM/ln3pZ7fy/bjUnvA5aKAsDs1 X-Received: by 2002:a05:622a:130c:b0:42b:ead0:8dae with SMTP id v12-20020a05622a130c00b0042bead08daemr4819395qtk.41.1706788456884; Thu, 01 Feb 2024 03:54:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706788456; cv=pass; d=google.com; s=arc-20160816; b=n2p13D9Sdhbna4MLFQC4tiVxlZutCZyfSWJC+rLpbMav62oWDB/kcJY+VG/CAizMyK jDd1NEyYss+MdAXSwXlZw3z9fWEppCLZ2WnJ4Qc6CEshWjJnHehBs4CR38YuOi4rxya3 7fRQpKK6vMSS8jgH3dDZcZRwdYjZ7Jmjubmg0UThFVqfLwl1NFN7JswJhZ0N3pvj/CQw D61JakNn/dbpSVyd/55XI2aDgEpB2RwD2k990ebEfFGlL/7cqBgym74audI/qBKrhw9X a6n+jV0Bw59FL4RxeFyqRtAoPGDrq9qTm1El5pXq6HpKpvSebeERfkhR/1sNUpxsFnyQ KgTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LYa8yIaLr023VLSTCIHKaJKEPgeNK6g//vp8Tebphcs=; fh=FYjoLOYlgsurGyWtUDWcBcpLc34bsHYDtfy2PdDZMAM=; b=lIIbtlytxtXa/nuD+LUQX/qUZ0O4LfIijF3Wp6+oQEvaHYKdDXaDdr5/4cEJF8A3Rg hf17zviKf3XlDoUhI0KWA+RmG/5eU+wYyUONmXpJuttYy4mivlGxjSXqhjPGlsI2Z8oG OWbbj1cVaode3difD9fApkBpxuxWpogSIs/7H5ArDwsXzYA8orn4N1np3ja2h6nOOyrS GDJfrcIPGpaSSiMj84B31ZbtL+/Us+lyfTAxRXlazHGXIug9mgT5Uqo+SY3eMCWO3R+L mAi1fsaWMm4jKp2lzr8Z/nhys9sRZdOP7j2LWhw9C29nqtHJtpWWafzeBAMk1u+JkzJN YDRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HlFjP2OQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48043-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48043-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCX9EkRqqTdhBvC/36VaVHqqmnpv7zAl+6A8ys2yC35wWrY4ieTWREUdIt2ZyL2fZ3ho6s2+3ENfXmIzIdHhO2B4/UIvzQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v8-20020ac85788000000b0042be30ac310si4029726qta.539.2024.02.01.03.54.16 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 03:54:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48043-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HlFjP2OQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48043-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48043-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AA6581C27B01 for <ouuuleilei@gmail.com>; Thu, 1 Feb 2024 11:54:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDFA615F308; Thu, 1 Feb 2024 11:53:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HlFjP2OQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1046C15DBB5; Thu, 1 Feb 2024 11:53:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706788409; cv=none; b=tHk3Pf41QR7hz0mFJ/p7SQ2W2Z9Fuw/wg+WPyDlSw7XJYIdMcQOTX/JXzZ6K8s/zaQcV8tgjn83vGVCdaBnv1vxd6BnwGqtn59um0WsdWEmKNS/NHSh+p9y+zFzoKe9ER4rPr8rMjMsa4QUqXxafx6kxB8Vj08FliDz3KD4gBN4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706788409; c=relaxed/simple; bh=xwCxROJx6BTu8Xiy2MItJhGUPUJPgxHfmZNp5V9yd+8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IjkO7j4uQ7Z7lARoFPIBzMun2/OpmPcZZjbfZlpnVVI59NIrzGivm+/p/zCkBeYPMFpStzNFUFuceNTdK19nxUP1R5AqrwD52tFhzhjX/LKdsTm2/GOzTASfcDcSVP6GZWgQWf8X0HQLqCnyD4ncMDHDzLDl5tztV2UjiTT8Xxg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HlFjP2OQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBFD5C43390; Thu, 1 Feb 2024 11:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706788408; bh=xwCxROJx6BTu8Xiy2MItJhGUPUJPgxHfmZNp5V9yd+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HlFjP2OQLDmLrfJsg0whXAVlV1xn0/yUniabZMEmxjXL4al4CquZM2uNcGrCz0dYx Xc54nBxg9+nhEv85g+B2mHcPJ6gFh6g78bkCgSBs3npFVJ7qruLuU2W3R9WjCDEkns dnmchPRH3i9z/E2degffIXzOzAEolhhQdvA+bNl7baVXTGkEGWa65AyhWZzPljBR6L nXDtHNMmJa3CcLVWjHf/BWXRizFmu+8sjC0qi6Zp0H1co7Rst+CF2GdsRiwZ8AA+Eu 1QSHG4Ez6frUDDR5Ql0Cz40iH6vGJXghYojyYl8ZRxvqMGv4NqReMXnCBPTnu1esCB EmvCIPuAOBAdg== From: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> To: jikos@kernel.org Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" <jirislaby@kernel.org>, Ping Cheng <ping.cheng@wacom.com>, Jason Gerecke <jason.gerecke@wacom.com>, Benjamin Tissoires <benjamin.tissoires@redhat.com> Subject: [PATCH 2/7] HID: wacom: remove unused hid_data::pressure Date: Thu, 1 Feb 2024 12:53:15 +0100 Message-ID: <20240201115320.684-3-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240201115320.684-1-jirislaby@kernel.org> References: <20240201115320.684-1-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789697412545769610 X-GMAIL-MSGID: 1789697412545769610 |
Series |
HID: unused struct members cleanup
|
|
Commit Message
Jiri Slaby
Feb. 1, 2024, 11:53 a.m. UTC
The pressure member in struct hid_data is unused. It was
added in commit 5ae6e89f7409 (HID: wacom: implement the finger part of
the HID generic handling), but never used.
As this is not a struct to communicate with the HW, remove that member.
Found by https://github.com/jirislaby/clang-struct.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Ping Cheng <ping.cheng@wacom.com>
Cc: Jason Gerecke <jason.gerecke@wacom.com>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
---
drivers/hid/wacom_wac.h | 1 -
1 file changed, 1 deletion(-)
Comments
On Thu, Feb 1, 2024 at 3:53 AM Jiri Slaby (SUSE) <jirislaby@kernel.org> wrote: > > The pressure member in struct hid_data is unused. It was > added in commit 5ae6e89f7409 (HID: wacom: implement the finger part of > the HID generic handling), but never used. > > As this is not a struct to communicate with the HW, remove that member. > > Found by https://github.com/jirislaby/clang-struct. > > Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Wacom current touch devices do not support pressure. We could add pressure back when it is necessary in the future. Thank you Jiri. Acked-by: Ping Cheng <ping.cheng@wacom.com> Cheers, Ping > Cc: Ping Cheng <ping.cheng@wacom.com> > Cc: Jason Gerecke <jason.gerecke@wacom.com> > Cc: Jiri Kosina <jikos@kernel.org> > Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com> > --- > drivers/hid/wacom_wac.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h > index e63b1e806e34..6ec499841f70 100644 > --- a/drivers/hid/wacom_wac.h > +++ b/drivers/hid/wacom_wac.h > @@ -309,7 +309,6 @@ struct hid_data { > bool confidence; > int x; > int y; > - int pressure; > int width; > int height; > int id; > -- > 2.43.0 > >
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h index e63b1e806e34..6ec499841f70 100644 --- a/drivers/hid/wacom_wac.h +++ b/drivers/hid/wacom_wac.h @@ -309,7 +309,6 @@ struct hid_data { bool confidence; int x; int y; - int pressure; int width; int height; int id;