Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp359717pxb; Wed, 18 Aug 2021 04:14:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9WplcBD3R12buppxDkAUcIWkQeZIIR2oueRe8Yj2rMIkrIeKZS/H9hi80cFY6MO4tRY7C X-Received: by 2002:a17:906:8444:: with SMTP id e4mr9320631ejy.516.1629285269213; Wed, 18 Aug 2021 04:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629285269; cv=none; d=google.com; s=arc-20160816; b=gnbk1L51XymPgLtIex2S9jHZseyF+t91CGx0DOBjIqNQNfad93IORFoWjcSDwaD2dP cmCBhKgrAQslh3ckzhLarvX1YOW2ARBQKstqnIjXAGl0mJsXFW7mZwdMpjeXlwqwvtz3 0YWuXvDW6TiOkyipTPBm8l/QJx5w/BL+vFfEWB7Um4EhHAGkxmLIlOQElm5FZyrNw98T YUehBWbjxwLxEWt4abKHgHv6SIUQFSkCyu0iIC7tngz+p02B0uEQQ0ynm4PEoWy49vT+ eEEapRl+uqJj+nNRgV83JNcbP63GkZaLU8gIAfiJ7jmIp9NuIeVPhXkexQuQN2EkAwzk vIyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GXThkp8naDC7r9R3yfH70EAEm8y/FmZs7RTcgrv0rkg=; b=YB9fiWfoZn85GPsLNyYtGBwBaT6havm26a1oVqQ50nZk4ZNN1mqRRzq4SaYtWTzY/4 EtgO6yBuDvPzDVzbH6Adr2N4+uNgCKXTLKto8eJTxYA/4fxHoqY0gmRmBnIp3lLurqqd GAT+BlucADaDa0bxRc9BKrFhLUkVNNdn6oXDJpW1IUqyx6ajTh9DkwqVN6xz2vFFw25d 9ELODtEAw44zWSxQqU4y2jYgKU5Vi5qaCM0qoc0x1o+dXLxYkaRmQsTo430yTDVYjryk yWKRNZ7hefAr+HRJXvRZfZFXpR38RthRPOw3s9s9dcScF7RpPPwHEX51+n2m4QB9H8FH QDRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si5575644ejt.369.2021.08.18.04.14.06; Wed, 18 Aug 2021 04:14:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235018AbhHRLMh (ORCPT + 99 others); Wed, 18 Aug 2021 07:12:37 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:43365 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235143AbhHRLMS (ORCPT ); Wed, 18 Aug 2021 07:12:18 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id A0CA560006; Wed, 18 Aug 2021 11:11:42 +0000 (UTC) From: Miquel Raynal To: Jonathan Cameron , Lars-Peter Clausen Cc: Thomas Petazzoni , linux-iio@vger.kernel.org, , Miquel Raynal Subject: [PATCH 04/16] iio: adc: max1027: Lower conversion time Date: Wed, 18 Aug 2021 13:11:27 +0200 Message-Id: <20210818111139.330636-5-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210818111139.330636-1-miquel.raynal@bootlin.com> References: <20210818111139.330636-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When only a few channels are requested, the core will request all of them as long as ->available_scan_masks is present, thus reducing the impact of any driver side optimization to avoid converting the unneeded channels. Do not share this bitmap with the core, which is optional anyway. Signed-off-by: Miquel Raynal --- drivers/iio/adc/max1027.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c index 8ab660f596b5..d79dabf20567 100644 --- a/drivers/iio/adc/max1027.c +++ b/drivers/iio/adc/max1027.c @@ -457,7 +457,6 @@ static int max1027_probe(struct spi_device *spi) indio_dev->modes = INDIO_DIRECT_MODE; indio_dev->channels = st->info->channels; indio_dev->num_channels = st->info->num_channels; - indio_dev->available_scan_masks = st->info->available_scan_masks; st->buffer = devm_kmalloc_array(&indio_dev->dev, indio_dev->num_channels, 2, -- 2.27.0