Message ID | 20240726-dev-iio-masklength-private3-v1-10-82913fc0fb87@analog.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
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 2CE78177990; Fri, 26 Jul 2024 08:23:00 +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=1721982181; cv=none; b=KRrXIj2oPnhJ3nB0ynIk+jUxRqugfPk2tYN8Ly9WksXUIG9TUu6fp7XLKiCWrKGBHf4K6A8dy84otdq4zpnrJNJTvHAnsxLzAGGY64jkiTG5M/Y1olVP7lyOAHMZ+8Kv7xJvfuRCZYhTaWpRyC7X7LKflpwOyf1XL2Me2bkIL5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721982181; c=relaxed/simple; bh=umD1IXfi/h95QQhMz4eWJTx8O2TaBSWYesNTGeRdxII=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AF7Zang75foNSf/01vvK8zejdaeD9v2z2RR8foxuT+v7W3vtdO39GeBmEj3LdVz14zlcByPCadvZ4khGK+Gnwh+xEAcZ1hKFHr4Yl5a+2HsO01cQsWuaO2ReDGrDrI6br51R9lrAAkTsveW9R5KKofLi0YlLcGhVYYXeVWq87KU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uhR5MQ1U; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uhR5MQ1U" Received: by smtp.kernel.org (Postfix) with ESMTPS id CC7CAC4AF0A; Fri, 26 Jul 2024 08:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721982180; bh=umD1IXfi/h95QQhMz4eWJTx8O2TaBSWYesNTGeRdxII=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=uhR5MQ1UbywD/sGpU7PvS4RRLIDTtWYokMQE7yvKONuRCcB8dIWQ1ztlI9VvqrpCX hV8f5MdpljPSGrCZIYsMj2d6RAgSLlteVvfmBQ36QoAlFI2VLHeKUhySxMNr6hGa7n XdtcOtHlxqLq7A66oifTTYY9WwlaA0Tv0fxx3Qv3HLtqiG87V+QUHYymZ6JCreTtfj PDoAoE2gNQFNKDCjYx7HoGQUVxpCQRSKPQaG5yploCBSJ9vKtJ0Yo31r/s0mfWk/5M PHoOvfBVDjQttc87gyrKUWU0J0W2qOQMc8xZWIJqbW84HLwUe9xiiqy5gWzsv3li1Q DNfw1St6Tf7Mg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3D26C52CDA; Fri, 26 Jul 2024 08:23:00 +0000 (UTC) From: Nuno Sa via B4 Relay <devnull+nuno.sa.analog.com@kernel.org> Date: Fri, 26 Jul 2024 10:23:02 +0200 Subject: [PATCH 10/23] iio: adc: ti-adc0832: make use of iio_for_each_active_channel() Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: <linux-iio.vger.kernel.org> List-Subscribe: <mailto:linux-iio+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-iio+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240726-dev-iio-masklength-private3-v1-10-82913fc0fb87@analog.com> References: <20240726-dev-iio-masklength-private3-v1-0-82913fc0fb87@analog.com> In-Reply-To: <20240726-dev-iio-masklength-private3-v1-0-82913fc0fb87@analog.com> To: linux-iio@vger.kernel.org, linux-staging@lists.linux.dev Cc: Lars-Peter Clausen <lars@metafoo.de>, Michael Hennerich <Michael.Hennerich@analog.com>, Ramona Gradinariu <ramona.gradinariu@analog.com>, Antoniu Miclaus <antoniu.miclaus@analog.com>, Jonathan Cameron <jic23@kernel.org>, Marcus Folkesson <marcus.folkesson@gmail.com>, Kent Gustavsson <kent@minoris.se>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Heiko Stuebner <heiko@sntech.de>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Francesco Dolcini <francesco@dolcini.it>, =?utf-8?q?Jo=C3=A3o_Paulo_Gon?= =?utf-8?q?=C3=A7alves?= <jpaulo.silvagoncalves@gmail.com>, Haibo Chen <haibo.chen@nxp.com>, Michal Simek <michal.simek@amd.com>, Benson Leung <bleung@chromium.org>, Guenter Roeck <groeck@chromium.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721982178; l=925; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=/zRhs+O5dU8RBr+bA0UyWxQ7bhGuFDbxpfRgXZ5+WII=; b=MQ4GGvW9pKcxivxR/c6CDelUg6zYahU1CzZdyeqX/tyLj5KopFY4oMsnbX6sseHma8Npd3ZO+ TTs6JeQU5sNBUtSFyal4UdETC3vl9Rb3X99qollaj63XIHva8luakJD X-Developer-Key: i=nuno.sa@analog.com; a=ed25519; pk=3NQwYA013OUYZsmDFBf8rmyyr5iQlxV/9H4/Df83o1E= X-Endpoint-Received: by B4 Relay for nuno.sa@analog.com/20231116 with auth_id=100 X-Original-From: Nuno Sa <nuno.sa@analog.com> Reply-To: nuno.sa@analog.com |
Series |
iio: make masklength __private (final round)
|
expand
|
diff --git a/drivers/iio/adc/ti-adc0832.c b/drivers/iio/adc/ti-adc0832.c index b11ce555ba3b..d7800e1fa536 100644 --- a/drivers/iio/adc/ti-adc0832.c +++ b/drivers/iio/adc/ti-adc0832.c @@ -211,8 +211,7 @@ static irqreturn_t adc0832_trigger_handler(int irq, void *p) mutex_lock(&adc->lock); - for_each_set_bit(scan_index, indio_dev->active_scan_mask, - indio_dev->masklength) { + iio_for_each_active_channel(indio_dev, scan_index) { const struct iio_chan_spec *scan_chan = &indio_dev->channels[scan_index]; int ret = adc0832_adc_conversion(adc, scan_chan->channel,