Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp263759lqm; Tue, 30 Apr 2024 22:14:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVB7EJQ7bU4GBaFV7WEJqkUY1pEMwoQgBlu3hs8dO/LRo09lUJCnKbgAmKgwMvNxHuvBx/vMrXtafGh72amVNF90a6gE/NEWPEJ5iQHTQ== X-Google-Smtp-Source: AGHT+IGRLjg6G6yGHPr6PAf/3m5CcR7iUiXgNhO0EgV5DxHoIfLJlIIT8VWaBlYX3NlPOG1vSW6F X-Received: by 2002:a05:6402:5153:b0:572:a158:8a7b with SMTP id n19-20020a056402515300b00572a1588a7bmr238838edd.8.1714540471407; Tue, 30 Apr 2024 22:14:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714540471; cv=pass; d=google.com; s=arc-20160816; b=fcLO9nndcypux7lmokyyDUSLcyZ/DremgYWznokXpw74V/wk6K+tc24Lmif+kkUo3h BivIuCcLbpuzrBqQC/Ld760LLP6hJ9cNU0uSMQsOzWrkRXPH94KQTTLRUBYJrol/0sOh UNRjzmQXShPetLWb/Cx4LqTInpXheGMEAne34oN9HDIej3DpiYJ2fvGb+YhrmCzezWQ/ JVOVXvee2QY2ErJ6hvLtzrFy+mQSlHpoYjs5hQno2ppsp56vCA2GCnx5gAteMhzZTgqm ulYx4qc47IsDSzwJ7QgmFPlyj/L4fMOX4p8EEQcuJ13zcp+LF7UE0csHsEmWiAmQnqKi 5eWA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=X1z/GNaSSMDxojxmVN0YxGfbCezIrv1/qyN8UGm7TgE=; fh=nOl7QDbNXHaK3PmG3RS9yrVSHx0r8eQl/tmO94X8NkA=; b=BhRxHJT6pgEI/j4ARYNlaeAgmN5L3uv4Sa/t2Pj7gbPnwzN3tqmzo8trDtoUvBuB5T QJquAKmsEyXh0OXeA6kZPMBiMR1ShNEjv43s4eK8fs7X0l/0t1NAWAwrI9g9T7/tvwES Hi7Nu3cs8QCeuLID9S6fXrPUOEiochvFl/4d6mPIcOF/OauzH1UdlslAmnMeeNAXTiZW CLaPjImXuGNE5rO6xrL6kZhGrwtCANjhxG5AAw02HxQ6/PBsyrUc0HkNvgFwbMQrNvCN UtG00S0SekZxR8R9KVbpKOnnMDUY+BObFWUEsQk9Rfs6JMlUWPw/hwKgI+8r3I5itKf4 2xDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=PS2aASDV; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-164938-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164938-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v22-20020aa7cd56000000b0057223108536si9397410edw.229.2024.04.30.22.14.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 22:14:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164938-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=PS2aASDV; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-164938-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164938-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 198BD1F23967 for ; Wed, 1 May 2024 05:14:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8C6644369; Wed, 1 May 2024 05:14:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="PS2aASDV" Received: from smtp.smtpout.orange.fr (smtp-18.smtpout.orange.fr [80.12.242.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B26C51D68F; Wed, 1 May 2024 05:14:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540460; cv=none; b=LeeoovMrAL3sy8Ebh0idhywLrN/vx81h0Kj6DNQVCCoABqr/08BJdeb77srvgWf3Tpoc8k30U/cc3xku0kt7JXemIsEO3gK59sajHLdyMg7KX0wO6/ToXRRpkoKuafe4vo5hGDmcxeTKkKocBA0VLTJOmmH55vt3hz4wfzuISIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540460; c=relaxed/simple; bh=RMWyAyYlUlSp9U/kE6nFI9ssssdGhoQ6D+bwcNf6+fg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P4OkQm8zlTVfoI+lUbx40mEpn7PWBC9D6LX63QYrEAJ0TqvY9LjbMq0WEflSq+xGe60o526sbUKNn/mTVWkD2kYJsvXg31IVWJZxnvXR5zipklcpJ709/mDJ2tTepkuKyWzky/UjXuyPQ/jQkkY5ofDchiseNCHfK5Xbyj1s3WU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=PS2aASDV; arc=none smtp.client-ip=80.12.242.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from localhost.localdomain ([86.243.17.157]) by smtp.orange.fr with ESMTPA id 229estbE3rs7M229esvot9; Wed, 01 May 2024 07:05:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1714539918; bh=X1z/GNaSSMDxojxmVN0YxGfbCezIrv1/qyN8UGm7TgE=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=PS2aASDVNpLMOlRQ6EseNQ4ojnelR4JnXF0fuFJLIQdROzbT2X5jB2I5boEh12y3u YoAqw1DtZPnSRkmbp1x/SZFexfGOW1Mj4S/2LVquZTYvFXbBj/A/iv2ZY2rpXSzMtw ZCGL/KF1QGpghD9W40HGjdh0qaT25rSaG+dGyIlpUxmd5gMfE2ZNwXYM44uWx3oiA/ 15NpG/dlq82E9YiK5yeyN1R8VgPW6dK7/8F1dj1vZCBrvxT4+eDXlHd3/0Tq12uZHX zOml8gQVz5+Y89aw26IXU8/QQE8X5ENR8DQs+/A2ixDRyhWPi+hRn5GfqepXen3MFx asoAR9ryPtFoQ== X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Wed, 01 May 2024 07:05:18 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Support Opensource , Dmitry Torokhov Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-input@vger.kernel.org Subject: [PATCH] Input: da7280 - Remove an unused field in struct da7280_haptic Date: Wed, 1 May 2024 07:05:05 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In "struct da7280_haptic", the 'legacy' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET --- Compile tested only. This field was added in the initial commit cd3f609823a5 ("hwmon: Input: new da7280 haptic driver") but was never used. --- drivers/input/misc/da7280.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/da7280.c b/drivers/input/misc/da7280.c index c1fa75c0f970..1629b7ea4cbd 100644 --- a/drivers/input/misc/da7280.c +++ b/drivers/input/misc/da7280.c @@ -230,7 +230,6 @@ struct da7280_haptic { struct i2c_client *client; struct pwm_device *pwm_dev; - bool legacy; struct work_struct work; int val; u16 gain; -- 2.44.0