Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp363323lqh; Sat, 4 May 2024 04:40:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDnU4GnvZfjji3je5c9d19HTvjVMoIY+WqePDdHmoLZ8+r3s1sNZhZv3DoY1k1wVOEzkw7iTuQVe26GtaB6NdRX4vVFMMOrnTjnStYNQ== X-Google-Smtp-Source: AGHT+IFDtnH6YLb4wZfPdET4gJ5iNO2q8XRg421X+mySB3ZNy0bvieFKBt1lH3lcWb16RG4sHnM8 X-Received: by 2002:a05:6a21:8187:b0:1a7:39a8:6ca4 with SMTP id pd7-20020a056a21818700b001a739a86ca4mr5769562pzb.29.1714822830483; Sat, 04 May 2024 04:40:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714822830; cv=pass; d=google.com; s=arc-20160816; b=G/Niw/s1i/NLfPsLe2QvjTHnOKKGtDgREmN7i6/PTcisIt2pzcwHWYAdVw1JmV6vsq vs/QvU8B0ERhnKuR3eP+m7xB7BbuhR1RDnrYgCwc71hkOCgwjorDbGDzLCcuA1sbuH7b VfBuwWdPh/MoAQI46oqcRf314hqLGfDo3R7ksk9mqJd+bVhsL9CNdUWtDOUXlNnSenZC b+Y4PxXMOypwwtQgv5CHewpnGkr1EoD5ikKYknaAN5V5w07iz5Rr8GrociS6o1rXSXF6 FMSDlPILiiVl1Ro5vnzZR2msmu2S8vlJQxUqHd4qXKlyXGuVXPLs8WtgLvbPcmUgIIlR LFMg== 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 :subject:cc:to:from:date:dkim-signature; bh=D1Dxoq6+yhGfiDfQVkDMw0VbnP9fCZgnVzKAXtoZgPs=; fh=idmK84f6TBbtKr9W4lF3rD1IeUn7G7h71EIZKhADK6k=; b=eIm2adWRLnj65G15MR2vsZbZCChCE5LpgzYvp6e4Yeq/+/YQLFZgU2xdldh6gt11ra OFhlL3UdsA7ClIlZsn5p7Lw3q+JKWL+9OBm6O9Sdb5hkK9KiegtNeeChL0n+iFwXXdqE CwmsHBA+hn5AGYquRO++SAASZqiddPAJhJzalNPiaHTTWalX7qkbvM33Jra/ZCLlJ94D HC5vQERtxlerpgQnqZ+okY699qu0eoXtSZAnJV0Eai18TW0fl4CBN1bKIBM/TA//73KK cBR9irs5YfM3zTE2qNcsiKpVpBdyDfqKQCbJGvmYT7IM0gzQuDgmGSdezQseKqH79DPZ OaSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NxZPpXyI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w184-20020a6382c1000000b0061c7ac2c752si3205520pgd.778.2024.05.04.04.40.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 04:40:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NxZPpXyI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168613-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1210EB21C7B for ; Sat, 4 May 2024 11:39:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DB1E200DE; Sat, 4 May 2024 11:39:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NxZPpXyI" 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 35DBA1CD15; Sat, 4 May 2024 11:39:38 +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=1714822778; cv=none; b=Rp5ghKxWTIqetaxxe6fbdu7vXm9Aaw3ggOj/tG+xMxDxzLm6oyvjYcT9wl1AEpv7aQ2NNaN4jJuyq4EjyPIAYeuJHFJftevApM17N3qbUmEdIVih9y+fwxImu8gN19PyOnUwHDm0j7N+j3pK61rn+CApoUL+tpRIarPBGywOrgg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714822778; c=relaxed/simple; bh=4rfjFtM+CtzyIEI0Hix6vR1OfmWEc43hHJudSrw9vI4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=I1yfpAO5RvALzV/JW0ZppOMPvtqRx/9dQNsoFm2vxx3wtAjB4oAmojHD5iPjlEe2QUv/30JlkgMAzccFHztQF/90XrAfsODPfQVSqHGKvLnq0PL7vxgkeEWtagdbho5H51qiDYHc3E4AIYcct6UYDY+d/6vwh3/EM2RwBHs9f4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NxZPpXyI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAAEAC2BBFC; Sat, 4 May 2024 11:39:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714822778; bh=4rfjFtM+CtzyIEI0Hix6vR1OfmWEc43hHJudSrw9vI4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NxZPpXyIHwafC48qLOELQ2MEgoPbmHt9o4yurHPUSJzg/VSNFZqup4fkWM0StiL+9 sPuuhVoleH7n7/E1m7UORaIzKXVGCkdfd5uddp6b/znGTRFidA4e0rscc8es+uPbek H4HD4hgZYtUgxoC+tEdKBFFQikMwowkYQwqTlWZ39z+IuT4SenaRt5ZID3Hetd377K HZHiPJMCeX/I35ZnhEdYorBpd8Osxh065AKRdIKPIDyrR2SIYzOhiu3FgwYWz/Uq5i mAK57YJKeVnC6pzs7l+zdDmhJ7/8b93B4rRfHjAR0bWztBTt3CcE1kKqwGmANRgLK/ BgdfNqx+whWIw== Date: Sat, 4 May 2024 12:39:27 +0100 From: Jonathan Cameron To: Christophe JAILLET Cc: Rajat Khandelwal , Lars-Peter Clausen , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH] iio: temperature: max30208: Remove an unused field in struct max30208_data Message-ID: <20240504123927.2d47c232@jic23-huawei> In-Reply-To: <73f9f540ecdc7c10e833e6fc782324ae7d34ba9c.1714555144.git.christophe.jaillet@wanadoo.fr> References: <73f9f540ecdc7c10e833e6fc782324ae7d34ba9c.1714555144.git.christophe.jaillet@wanadoo.fr> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 1 May 2024 11:19:41 +0200 Christophe JAILLET wrote: > In "struct max30208_data", the 'indio_dev' field is unused. > Remove it. > > Found with cppcheck, unusedStructMember. > > Signed-off-by: Christophe JAILLET Applied, Thanks, J > --- > Compile tested only. > > It was added in the initial commit 9ee95ae4cffd ("iio: temperature: Add > driver support for Maxim MAX30208") but was never used. > --- > drivers/iio/temperature/max30208.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/iio/temperature/max30208.c b/drivers/iio/temperature/max30208.c > index 48be03852cd8..720469f9dc36 100644 > --- a/drivers/iio/temperature/max30208.c > +++ b/drivers/iio/temperature/max30208.c > @@ -34,7 +34,6 @@ > > struct max30208_data { > struct i2c_client *client; > - struct iio_dev *indio_dev; > struct mutex lock; /* Lock to prevent concurrent reads of temperature readings */ > }; >