From patchwork Tue Jul 2 16:02:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nuno Sa via B4 Relay X-Patchwork-Id: 13720025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D01D6C3065C for ; Tue, 2 Jul 2024 16:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:Reply-To: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: MIME-Version:Subject:Date:From:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=frWusUPTpkFiQObXaG64kb4W+4RZg63bg/iiWHScPsk=; b=M6mMdvBzl3g1PUlPZcyIwUrJTR RuZtaOTu14DCi5pH8zVO9Aax2/fOCZcrSZXbAUIlvhF1aKNHawbcZSY2VY0paVhHhx5U0GR2E5n7o E9nmByd93Y1G0HvzSlnkICtfCuOJVEM+xDe9VoFl3z90sdR5VcmSnzz0DZCq0Q6a9S4KiYd2XYw47 uAKYI/KV0OMGHTfc3MMYWJ0gCTNJtFo74QUYd9qZpnvMva5b0rwQAO3DhXj/vxV/fle7uRO6ABvgW 4+IdMpRM30Y4aDzVRzdOaclcQUdnhlz/c43/brWZIdwsDeppuHDvM1U9K+67agxR+JZzYqO1GRt9m 6Y6AbAIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOg0u-00000007Jig-3wAk; Tue, 02 Jul 2024 16:05:52 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOfxs-00000007ISX-1Jr8 for linux-arm-kernel@lists.infradead.org; Tue, 02 Jul 2024 16:02:47 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AB8B161EB7; Tue, 2 Jul 2024 16:02:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 4797DC4AF17; Tue, 2 Jul 2024 16:02:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719936160; bh=66crgnursJi2B2eq0VvNe1euuje5cNpdlKdf9yiBQ5Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=uX4ybv3a6Z3mfPKeNbWh4RfSjDaMSWtQTyu6nIqPkcR0t8MvIzAuA68/7BFq4G9jO 0PnFuq0vn2f9lwqCmRg5/IDIzw04V62frhAkVbx7HjomWq6ZJ7aqXHyYZO/Hray97v s7ZvaZvm0OQCAOSzFT0BejepkFxud9G79EUbFv7FHwxqplSyj+PWqGJBBVzLSyCz8I dgBxEH8xUZbKaQlAkaQk34EzGwD3mcYDbGizZYOVP5QoEIsIiGXa3Zsbv2TOhwAsUF OyEQ6+SFzxJhg1Qv+JeB2VR1KF0yazmhRG8at74lm4rKYM0kk4B8ge/kRt43B5IY2M 13yV3pq/zovYg== 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 3D814C30658; Tue, 2 Jul 2024 16:02:40 +0000 (UTC) From: Nuno Sa via B4 Relay Date: Tue, 02 Jul 2024 18:02:52 +0200 Subject: [PATCH 20/20] iio: imu: adis16480: make use of iio_for_each_active_channel() MIME-Version: 1.0 Message-Id: <20240702-dev-iio-masklength-private-v1-20-98193bf536a6@analog.com> References: <20240702-dev-iio-masklength-private-v1-0-98193bf536a6@analog.com> In-Reply-To: <20240702-dev-iio-masklength-private-v1-0-98193bf536a6@analog.com> To: linux-iio@vger.kernel.org, chrome-platform@lists.linux.dev, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1719936157; l=884; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=9JQj/jSVCDw6YceIOCpJXsyqqh4Yh0od5ovTl7zFZaw=; b=WbKDEozkTJlTjNGGrlbP8WBXQHbJ9MxM+I/TdvuUkOeC2Du4VJFmRNR/8xcAc92ZixIlu+VhD X8ML6nmxoN0BUGffY3qH5gMINA/SRS1OC/SWA7+oK2DFped747Yb4fc 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_090244_543982_AD899CDC X-CRM114-Status: GOOD ( 13.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: nuno.sa@analog.com Cc: Alexandre Belloni , Lars-Peter Clausen , Michael Hennerich , Cosmin Tanislav , Claudiu Beznea , Guenter Roeck , Dmitry Rokosov , Benson Leung , Jonathan Cameron Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nuno Sa Use iio_for_each_active_channel() to iterate over active channels accessing '.masklength' so it can be annotated as __private when there are no more direct users of it. Signed-off-by: Nuno Sa Reviewed-by: Alexandru Ardelean --- drivers/iio/imu/adis16480.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c index 56ca5a09fbbfc..2f08268bd724a 100644 --- a/drivers/iio/imu/adis16480.c +++ b/drivers/iio/imu/adis16480.c @@ -1410,7 +1410,7 @@ static irqreturn_t adis16480_trigger_handler(int irq, void *p) goto irq_done; } - for_each_set_bit(bit, indio_dev->active_scan_mask, indio_dev->masklength) { + iio_for_each_active_channel(indio_dev, bit) { /* * When burst mode is used, temperature is the first data * channel in the sequence, but the temperature scan index