Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp683455lqb; Wed, 29 May 2024 07:43:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWE58mI7NH8/d+6ru1At+mE+AXhF/n6pbx0Xw5UQWfDMYD5genIQ/Y3FhZEy/hrqQb1duzPiJPhk2sPy/89qR7iNM+T4OjRsFLzL21gPg== X-Google-Smtp-Source: AGHT+IGst/TL6ofVkto0Yc4EKgA4DXlWSiUjIq71llbJUzC0itYz2InsbRCyymYAzGehNPH4pNvf X-Received: by 2002:ac2:4e70:0:b0:523:5dcc:c72 with SMTP id 2adb3069b0e04-52966ca8c26mr8250178e87.57.1716993785399; Wed, 29 May 2024 07:43:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716993785; cv=pass; d=google.com; s=arc-20160816; b=Sg+m3WO4RP/ENb2Q990POk6WAX2Cu/z07odaFN0PJ7L4ZTfbnzLEkkDMQJMe4hx9Iu xYUHPSWJqUL8yv0oo9atbhjV4yyqIaIOLM4gSiBfavl9A+n4oNnarsE0SRbt1Qhhz6e0 qFvPvF+0M3JECOlCVLZYS1vPPPmEJnkSah9Cx2mhoXXqk0W2OwE0qpJyoJDNwXE6bkql fOge+zMk38KjEryX/iy/OH7p+ZTTknprrBKZEZwd1HQ5N0ynEBRs3mbLD5qiMhJWqbZf fMdFYFwdALssDEj3osz5v5nBLGav0OPQnt6TILiad9VU2vnyRHiP6X+hy2CKo5E08iJP X1KA== 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=Cd5Jaltzw12rjCKy5wbs74zqw1sF+7oimZgG7BDaEa4=; fh=76/exhETO23Ndj/zRmjAh371yrudMVPx/5Mx/bG1e4E=; b=VtVqAj5XGX+xM72sKZOaK2k9fLBnTTSDOSlmYKN+Ls33g2tBHItBsyU8BRe24LTznw QZwFUwakvgp9L0BQVBqal5eG8f8ZSIwFKgu1h/lT5Z/3oXzkJ7Nq5jHqj89B8srzkrPb iAYMRGPTzTUVJNNIc+RWO8GnmeZ2hVPjb2Nsu9lGU2vc4nvfCRPf7J6JF5VgxyC+cyYW Qed55SHORCeNob4qRm+1qS52oAshshkK6Iy10SKi9hnL1TcCd8NU/HqPU8pGBqw59Jw5 W0WPV8YNAXlHMA7bfgm0FmAkmqZLCDYh6c2IkG81Hw8jpUi0iYKcwkptK8WZ4XTO5eN1 NA4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OiZShIOy; 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-194279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194279-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 4fb4d7f45d1cf-579f34b8ff4si2029586a12.268.2024.05.29.07.43.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 07:43:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194279-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=OiZShIOy; 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-194279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194279-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 E90961F2829D for ; Wed, 29 May 2024 14:34:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4288159217; Wed, 29 May 2024 14:34:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OiZShIOy" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 9C85C15920B for ; Wed, 29 May 2024 14:34:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716993285; cv=none; b=W4yTJLxLiYolh8d9Y0zB8j0rl+CNLrg7PbwN50Wg5aU6Z0L6wAuoj/+LQFVjye/gEKnTvEflZhN/toqn1z27UxMC6c9oMtAbCeRcX2f38QMzYH5hTTILNJ7jXOZHviX4pjxjRuBwDgpi3uSbEvyCtph5g/7s4H5HeRMS7uhM4WI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716993285; c=relaxed/simple; bh=kA7CXxgdm0m1foHK3IR+qoqDJrbO6cKUy0Fh4VXhYZ0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=apud1GjrtLRTGhTBbZNQknlriQ2Okn8yMMFoetHC05Tl+aWzBYlWA2x+UCWCKK8H3qd1Z6aAmcsUbYy6oqDVkJNdLoh/LuXJfP158YwNW9Vz68IACHHNJxYoh96E9i2GCET6yMT0502IXHS4/epQmZZx74+hzWEKINC0O3ObMHE= 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=OiZShIOy; arc=none smtp.client-ip=209.85.218.52 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-ej1-f52.google.com with SMTP id a640c23a62f3a-a653972487fso65457266b.1 for ; Wed, 29 May 2024 07:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716993282; x=1717598082; 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=Cd5Jaltzw12rjCKy5wbs74zqw1sF+7oimZgG7BDaEa4=; b=OiZShIOyKEFduqaeZrGuGp9mNLwOrN+IIXfAqH5a5CdmZg6xdB1CZluwEUG02Vptwc aQBqk59MANjHtkxkpWt/X9V6Tzza+NshNAdwT1klNEkicZrUNl2P8/e32vykBg6nZ+80 NeucUgG+HH0CAMh/q23GubfhacN96+Sqn6IZWekkEWE+iZpcoNKsUIiwfyOgWgj1bN8/ fVs8yBoEhF9mCQer+IzYrT4AV/SJH6rYNbw+QvDW1qN2/rncynf/fAoxWhOVJqf2olad dolyqP0/6ocoy9vw5wOPPWkLD7BLhaXR3/KiwDuQnu6cyUcgJ4d1bjV+1SJXeujDwDbd JMKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716993282; x=1717598082; 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=Cd5Jaltzw12rjCKy5wbs74zqw1sF+7oimZgG7BDaEa4=; b=Oak6HrOu0SlBI6VTq3Yddp5z/OEseU/WCUzl2RB3rWywrS3/9N5ZcKBC0/HRQHAesl UaE2e+9KudS3DbeoT+yb6OwztP9iWMlNX4yQNERESB6eLFmlrzFlMMUKYeoutXdoWDFd MXgoqWQpuLhXHp7tD3qI3i9oB5jcJSq7NgK7P1SfiB7UpdiAzZBTzK7ZgTCJi9F51boE NV9AR5ZTLw4mUZAz+L4YkxItQ4eR04Y7iSa8Mt8pPOEdEW+ObFMpYO4AxMCLXy5SceEl Dc+35Asf8/8ZHu+/fUf2APq4XwqP5XGU+zTHEPl+xApAx+nTygq+d5YqOokncW2grgAA fNXg== X-Forwarded-Encrypted: i=1; AJvYcCVowtF+x+iMTIAEgEEo1fkX/6D4GuxfXDgSuPCfVWEzAvLn1EeluBeQRaXqznbnpdQSENFDxekeOoqhVQRxvn+nGwAwhSWy68wsY/sw X-Gm-Message-State: AOJu0YzSaCZpcK8EFyHEMkCUQH/x8PQmlyR0Vrx+uJBOxMgDMq+Gpbrz AJ5zWIsS2qpIUEDH94rSmVN0p9O/ZqXZUGjAvGZMFjDOXdk70E0yjDVLGFRUSHo= X-Received: by 2002:a17:906:abd0:b0:a5a:896f:9be0 with SMTP id a640c23a62f3a-a62642eb70bmr1169713166b.27.1716993281816; Wed, 29 May 2024 07:34:41 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a64255dc8cesm83208466b.186.2024.05.29.07.34.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 07:34:41 -0700 (PDT) Date: Wed, 29 May 2024 17:34:35 +0300 From: Dan Carpenter To: linux@treblig.org 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: <20240528233008.191403-1-linux@treblig.org> 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. regards, dan carpenter