Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp752285lqb; Wed, 29 May 2024 09:28:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4MWFYrVedNqJJ+WMhmb1q+l/O4VFE1o3Vi1Eju6QCVT8+YgSoAShSFg34mbSBkQbcYBvIdV5Ry/zPWYOTBXyiBYNuonnzajerv0elcg== X-Google-Smtp-Source: AGHT+IGoMinmTA2CFIAo2uhyT+HXv/ZxOYVV6zK52BE6k2lXG48/WqrXFE2ydIgyioRpOechRJx/ X-Received: by 2002:a2e:874c:0:b0:2e9:87f8:7fd7 with SMTP id 38308e7fff4ca-2e987f88074mr42204581fa.45.1717000103413; Wed, 29 May 2024 09:28:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717000103; cv=pass; d=google.com; s=arc-20160816; b=vH1Hwol+wpEHVT0c6ruFfxxgn94KT92Myr3J0LoJc/snATMOZmCBAdOACmNnfvmM3H EjQE4AkEiri9I/spDLU59uiGI7dWzhVDO61oSU11dGrsNOEJBD8JfPybl6vMSyOXq0t5 dSzDwltQHIbtPXk7Ogl/UZreVfvh/fZVpA0enzljh2h6byXyUIUpX4+60jci+Hv6IDJJ TBMGi0eqIyA4yqfs0yM65A2FOJv63ZsR8em0k71UOvGYY+Spd4GmRt6HOm0ntEk/Qo4Y XFOz9mysKJVgWvGiRWhoEf+AnUuvSj0PEdYUMzMx2IM3mKYusWpN+h3iZv7InQlnoY9R T4mg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NEJH+7+vj6ruF1GbLbgob2BE38yHKh8JHlHGL8KdovU=; fh=FEWcl3bNMAEjWs54rJ8HLbbojcSFBQF+IjLGyQwy0rQ=; b=TDPhyRjydIfXz6jlo4Di4irDbmArBz3FUvoKhORZrn/ZjSi+x70u4pGuGB7Hwd3cE2 tSriOEpm9CMNcGZ99h5k8hgN2YhJU8WVzzawB1SeXxjQ4alURi5kZL2lCwVjxT/KWIuv G2FJOsPvq0QuDWj/h41/WOfIMffby18mmS/Um12qLx/AW5/+aVH+SYOCQPmgAtQ6whQ/ BeSGXRPvIa94lplGqTrZgBFzvABQTnevo98d7Fa789z+t72dzEwWjkJPoWN4ZDh3fbGO K1/AGHqL2ydhSBEZmbA2qSVP4fXnrdUR/3ko7wcsme/mgZgfncJa1WLcKc+tQab4KLpl q+PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=guea9sdN; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-194442-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc6682asi637881166b.590.2024.05.29.09.28.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 09:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194442-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=@linaro.org header.s=google header.b=guea9sdN; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-194442-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C9C491F2121B for ; Wed, 29 May 2024 16:28:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1236A184119; Wed, 29 May 2024 16:28:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="guea9sdN" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 8A7731836D1 for ; Wed, 29 May 2024 16:28:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717000093; cv=none; b=Gne9DJNCZeXV8/CqTClOgWEkfRrBYwcpbKdsYVzV8gqhfz6Lu2P3TkWCqr39rWgrkm3An2ZJtaAQ1Udg3q11wytpWqEOPlRUgWXzxTaZaZXCuHVb/qIEHuEuhmsY1fZ7gFQEs8+u2c2BRDrJXzxbW4lOmEfEVBloFHqRcpPOLCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717000093; c=relaxed/simple; bh=vNJiDOu1HJQcTh2QoH0ZF6EeoU/vMa/maD5ym7acze8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f+YbD7pu8xZx8e5c/6DpZJStKxJaBkQE4jj6LJNvNz1XUotI+lSauW4pUOehDlRpgunx0UCsv/ZqvptwflO+sPS6r7ma5mkDUNrjtdGpu4BP6+SkcVHfmvaoHQGTcumuglVfZLJf3WF3KG+4abiM8Sfp1yMVFj2ZNf/X05DfUfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=guea9sdN; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2e95a74d51fso6712831fa.2 for ; Wed, 29 May 2024 09:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717000090; x=1717604890; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NEJH+7+vj6ruF1GbLbgob2BE38yHKh8JHlHGL8KdovU=; b=guea9sdNPBp2+nH2CwK0kuAmxX84BW8S6340QSc4xEFZnpdR+AIISSsoZP3ilcwh/8 W1Xs1+bN2zkeAWzlAWBZa48MpUlC9TYXxOk18PuiMcKYZvQKUrOj6j9KYEZfeFrYViNa oPJttLcbj7UefRTjWchYzSCyRHf2gkbzKeVynXLB/iaDD8t0X9CYQvMdQTL+bHzALPEK /CzRBu3CvK2gEse5Xd8XPrqDTncDxNfe++Sk5bLHdLjSfiEEIHSp+M203xdoFzrlRN2m e/AliR3tZKSAGbAosEVBJD6bTi+I6S1ba4ZMUWADTzpxbVm2lax7G9wEX7pYXj5hThCK /bjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717000090; x=1717604890; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NEJH+7+vj6ruF1GbLbgob2BE38yHKh8JHlHGL8KdovU=; b=u1tgeJdiZ56FG+igj52fsJiCwDS2b4QQ3DGVqT9jUf0tspzWg0FwOFHnsToQYlIrmV 8UHOhcdoj1GWMXvvwKl2nFrG5vux6OfY66sceKvH0lJ8o/YJtL4Y+0m1gzT3yYp9pAH3 +ig9KJ6gbj3jQ2FWpyq0nRJ6fD50as+xKBq/VzUAbG5iBdhL9ECkIrwIHAFDcTwtaf90 dIHEnAMcbMYSOn0DHDiv8SgSwDwXzIT2CJVz36jebKuWiq74gK0J0DXpP/dyjADo6L5P KQFdjceh0MIWzCmUCUDNM5PQ2XOA9wE8tDvPHT3L2yVLIvzV2KOk01g0Sl9BTx+xn2kr zBLA== X-Forwarded-Encrypted: i=1; AJvYcCWG5RhHe1r4wjmclORxXqvUQQ8j6sPHpHCGvfLBfwu4L1pR4v9spgPA45Akag7lEadcigCUosOEDXya7ExXWHgMZgXZzwY1AnHC46W5 X-Gm-Message-State: AOJu0YzIYEIOgVkGVYtG9A0Ww2j5mHnpnOQnoa3TBXlxMjkqrLZ05WE+ ogfzQoDASLAT9jkiKR3CZ4ZqAggkGaPPWEED2A18D5HIOf4IPAPWhuJLh1Aok9k= X-Received: by 2002:a2e:9d91:0:b0:2e9:821a:82fb with SMTP id 38308e7fff4ca-2e9821a837cmr55797371fa.6.1717000087636; Wed, 29 May 2024 09:28:07 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626c93a828sm735495666b.83.2024.05.29.09.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 09:28:07 -0700 (PDT) Date: Wed, 29 May 2024 19:28:02 +0300 From: Dan Carpenter To: "Dr. David Alan Gilbert" Cc: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: iio: adt7316: remove unused struct 'adt7316_limit_regs' Message-ID: References: <20240528233008.191403-1-linux@treblig.org> 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-Disposition: inline In-Reply-To: On Wed, May 29, 2024 at 04:01:24PM +0000, Dr. David Alan Gilbert wrote: > * Dan Carpenter (dan.carpenter@linaro.org) wrote: > > On Wed, May 29, 2024 at 12:30:08AM +0100, linux@treblig.org wrote: > > > From: "Dr. David Alan Gilbert" > > > > > > 'adt7316_limit_regs' has never been used since the original > > > commit 35f6b6b86ede ("staging: iio: new ADT7316/7/8 and ADT7516/7/9 > > > driver"). > > > > > > The comment above it is a copy-and-paste from a different struct. > > > > > > Remove both the struct and the comment. > > > > > > Signed-off-by: Dr. David Alan Gilbert > > > --- > > > drivers/staging/iio/addac/adt7316.c | 8 -------- > > > 1 file changed, 8 deletions(-) > > > > > > diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c > > > index 79467f056a05..23d036d2802c 100644 > > > --- a/drivers/staging/iio/addac/adt7316.c > > > +++ b/drivers/staging/iio/addac/adt7316.c > > > @@ -209,14 +209,6 @@ struct adt7316_chip_info { > > > #define ADT7316_TEMP_AIN_INT_MASK \ > > > (ADT7316_TEMP_INT_MASK) > > > > > > -/* > > > - * struct adt7316_chip_info - chip specific information > > > - */ > > > - > > > -struct adt7316_limit_regs { > > > - u16 data_high; > > > - u16 data_low; > > > -}; > > > > > > > Could you delete the blank line as well? Otherwise we have two blank > > lines in a row and checkpatch will complain. > > Sure, v2 sent. > (checkpatch didn't moan at me with or without). Thanks. You'd need to apply the patch and re-run checkpatch.pl with the -f option. It's not something that's obvious. regards, dan carpenter