Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1214965lqb; Sat, 25 May 2024 10:30:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5bU+EJIXyKkUiAuXWxbS2ZrHra26TgGZxYOy3pKA59TixPnvpifcS5tARvAD9iZ7QLaYffiIwtmCe6bqD9J+AbLS2BWz2tXOqmALS3Q== X-Google-Smtp-Source: AGHT+IEqSoha58gyncNaPobomvplLdjTnlU7V1Yk2CFQpr6fNUbPg2qMceo4q11Tvx6QFrYNwyqn X-Received: by 2002:a05:6a21:3998:b0:1af:86e4:bc99 with SMTP id adf61e73a8af0-1b212cecbfemr7022835637.10.1716658257213; Sat, 25 May 2024 10:30:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716658257; cv=pass; d=google.com; s=arc-20160816; b=WuvTJYssW5F+8mu3E8ddFkqU4DFZSoRKJ5M7ohz4IuaBFzhWuZuH3GZ8zbdx+xw1vA 3bYugckBWPneSbsQ6J0MhuI0TZz33hgY00oIEJgeA+z21dPF13kGUzhrZWCR8uEK/0JK qMuqpF1sGaANtWcTEXd2Xbfc0bLnS2060zvTd/Id70Pcm7+97G4QTs0UKcUW+3WVJEUG hdS41rki/Sa0tJ3DObDZwyUHdKAE9lk67RN6ccu9ngom4B4gi8ij7KO3GHIy65w4ZGoH pVVvjhViCm/2q5cFYeACfKm9L2yHWxEqTc51pbBJvYiHhEspi9S/qB7fSXivtM+XSBZu HLSA== 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=5UvPLj3+kIGZtxf0pXV8jljeUqr0LS7torJ+SCx7EK8=; fh=yUY539+YALmVSY+JeBYLOSADzFq1fLVaYV47lw7WKb4=; b=zn/1xhYw5jP1Q2I57XiKq4EbTzYIZCXruFZ1fPGNPuL26rwyhc70yVSCs84P5lnBSW KoKXAhSUffR2DEzAFXhiKZGznZJkPkCmvnwEJJK8OoHKJ4VBdr+rQLcadIEey0Na9JZY ufc63H7NW2DlHpM7Ult5iylD9oLxBWbqojcKlyFHxC67umD6jKcsvt4oT4QQsZENX8uf Be37HVGyiTn7QzEdIN1cWFiBzzzd/m1D63lXkwpQ5w4snWggYugM0HdqLVTuKJwtmpBF frWkYUs30JaV8nJgIPfB0gEo883nlWt6PkNwcWBIaa80BoEsiPyT8ekHEpo1YTjFlYMh jhlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WSK0qtjT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fd4d1703si3358779b3a.225.2024.05.25.10.30.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 10:30:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WSK0qtjT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189471-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 548B0281D0A for ; Sat, 25 May 2024 17:30:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 403E1126F0F; Sat, 25 May 2024 17:30:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WSK0qtjT" 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 6A275179B7; Sat, 25 May 2024 17:30:47 +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=1716658247; cv=none; b=j8x+4MEI4VEl782+zeI2APEIpTBRPJ8em8NcnsehOkDEvIAydk+Wu5js0EjQYbBc8lKyuqTvoq1z96qwRcU5orcj/LulI9xQ938MLVJC1InW+TWB6ovOFnFXkdV+HJOxLTtqYIcuyOwok5ljwZ+EmQGn8szhT5Nh2fBr+vTsh0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716658247; c=relaxed/simple; bh=Zp52KC1rxjlnpiRNoN7pXv0vNQ8Xzy52LHj6t0MDM8Q=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WfzI4+Hd1L8v1zf+DTdaiH0It3Dvdc+1ZwIO0t0Qge8CJR/NqoRuOiPiuJ15XOztHaq3suqlxidMtW+UsvRH5qsv0dtqC1+nkx0Sr40y8sjjsSFy1K7CAD82d9/U+kGurmbBSYUS23ra8fxM3yEZFHFCNoK6qTOImuIXMPO7H6M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WSK0qtjT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 990B5C2BD11; Sat, 25 May 2024 17:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716658246; bh=Zp52KC1rxjlnpiRNoN7pXv0vNQ8Xzy52LHj6t0MDM8Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WSK0qtjTLU9QgAbpOfvFzFgpwlS7dPkzgVdALJvracLJK1sZSoIAV8wzBGNMmRH85 CdQBiIPUz1KSiPZP/iYWD2lWNBpVBh1C93k8oKWHxinxShfrpyWvFdOGml/lc7BqGD RfYdn0862zZWmDKn/GhLAFz4V/Oei4MMjSzckYdtCSPz86gJjzVtedKjT22D9S3YzF ROhY4fI9o4sTP5lWKPKNwQF66V51i6zpNEC/TI2eApVA4wQ7EFYV2mOrnLoRDc4h9W 4k9gzmVDlEzM2+RVYFW6r557kxdOclcm10mDRmI/PVQ0SSZrCh+05sEsia1GzYQpfM fGGrZGzCcA2EA== Date: Sat, 25 May 2024 18:30:35 +0100 From: Jonathan Cameron To: David Lechner Cc: Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: adc: ad7944: remove unused parameter Message-ID: <20240525183035.0faf0de7@jic23-huawei> In-Reply-To: <20240524-iio-ad7944-remove-unused-parameter-v1-1-fd824d7122a0@baylibre.com> References: <20240524-iio-ad7944-remove-unused-parameter-v1-1-fd824d7122a0@baylibre.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; 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 Fri, 24 May 2024 15:38:04 -0500 David Lechner wrote: > In the ad7944 driver, the ad7944_convert_and_acquire() had an unused > `chan` parameter. This patch removes the parameter. > > Signed-off-by: David Lechner Applied > --- > drivers/iio/adc/ad7944.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/iio/adc/ad7944.c b/drivers/iio/adc/ad7944.c > index 4602ab5ed2a6..e2cb64cef476 100644 > --- a/drivers/iio/adc/ad7944.c > +++ b/drivers/iio/adc/ad7944.c > @@ -259,7 +259,6 @@ static int ad7944_chain_mode_init_msg(struct device *dev, struct ad7944_adc *adc > /** > * ad7944_convert_and_acquire - Perform a single conversion and acquisition > * @adc: The ADC device structure > - * @chan: The channel specification > * Return: 0 on success, a negative error code on failure > * > * Perform a conversion and acquisition of a single sample using the > @@ -268,8 +267,7 @@ static int ad7944_chain_mode_init_msg(struct device *dev, struct ad7944_adc *adc > * Upon successful return adc->sample.raw will contain the conversion result > * (or adc->chain_mode_buf if the device is using chain mode). > */ > -static int ad7944_convert_and_acquire(struct ad7944_adc *adc, > - const struct iio_chan_spec *chan) > +static int ad7944_convert_and_acquire(struct ad7944_adc *adc) > { > int ret; > > @@ -291,7 +289,7 @@ static int ad7944_single_conversion(struct ad7944_adc *adc, > { > int ret; > > - ret = ad7944_convert_and_acquire(adc, chan); > + ret = ad7944_convert_and_acquire(adc); > if (ret) > return ret; > > @@ -361,7 +359,7 @@ static irqreturn_t ad7944_trigger_handler(int irq, void *p) > struct ad7944_adc *adc = iio_priv(indio_dev); > int ret; > > - ret = ad7944_convert_and_acquire(adc, &indio_dev->channels[0]); > + ret = ad7944_convert_and_acquire(adc); > if (ret) > goto out; > > > --- > base-commit: 6c46802cc0c4ff878f07139f7b7b8774fd43ce3d > change-id: 20240524-iio-ad7944-remove-unused-parameter-d814bb7e1a28