Message ID | 20240425-b4-iio-masklength-cleanup-v1-1-d3d16318274d@baylibre.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 3A083C19F4E for <linux-arm-kernel@archiver.kernel.org>; Thu, 25 Apr 2024 16:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vpBUGyepvDOW3b2xLaa5xULoVqSzTNaPJfa4SO0/JAQ=; b=jcXOp7tKgIJhng KGZqkQ7RX7ED3BWVOjU0Xst7pmmOdQPI3g+jrc8BU9g6PvxtetbpJp+9N9oRPByJ/7Zi9vW82h6/C 8g+UPI6nxqMt3ywe3zcR0k/8MzUcakh54SHpIyCNczohaPkgBSArJyUb7gpcnCsZFuw4oW0ODFE6W gblq8HZ1Vxe4RrTqby/jSGcpt1Q8+zUAoGIHp/n5UPVDWoIdiHEJF/PtpK05AJS2Mg15obpjgX3De bj2jH6+0pl59R878affk77Bx4Pex5HTQEjscKxwR6HZ8aMZM/mGjzirhaJgE+cPPhCb60Kmqixi4I afJDvZNyDRO2wZp7+H+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s01lv-00000009K6n-2nyK; Thu, 25 Apr 2024 16:16:31 +0000 Received: from mail-oa1-f48.google.com ([209.85.160.48]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s00dS-0000000902d-02ZW for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2024 15:03:44 +0000 Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-23319017c4cso648040fac.2 for <linux-arm-kernel@lists.infradead.org>; Thu, 25 Apr 2024 08:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1714057415; x=1714662215; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GHHT3V3NAkn80zT3ZwzVgbMDW8DV/51JYCXCI4YMBAU=; b=n528BsHRt3v6PD3ezoth/T2MMdXkqJtL6FvmTCTNKcFxZG29HLKvTNEPJXTGVzUjI3 wX2tRIL8dqkBfN7pHC8yQCXbua4ZPDSj1cSfJEhnp3BEMrrbiKKMDW+ewN6y6MlVxJPc 1vGsw9c9Ilemo8/fA1eBDFhmQAEelkK259OS2rR79BWfGs87IljHTjF/ylyToq6VsLxs +JW9AvVoirTseZYCgKbLMOWuQ74BhMyEV25e4jCt8zOMwC7w3A+N96o0u/3+Bam8noqy 00AYNYdSqWygfgmq/7wfpPAvXBmlebVC2reShFiIh0EFMm+3JKWdwxia+PGZ/GhITotr yvIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714057415; x=1714662215; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GHHT3V3NAkn80zT3ZwzVgbMDW8DV/51JYCXCI4YMBAU=; b=EGgrRdTqhFnsre6ZVQhsG0kY425kU3OGbJKf1LUuQ1ySwatkbJvCMHL0bK973KKAfz sKIJcOyIlgXJ89va7fZVR+wzfN83xDil/Ao7qKPd0P4fsq+W1a/awV66ZgQsumZ0W727 y6gtDGDZKZgzUPzxq0VXNlCs0GYUql8vcxvzLnQtc+cXSaYRFNPo/U1Q+dPfaujj0XOV K4evX1sB0HyGvC7TLGGr8qN+ty7lNi2c/r2Pxw1GBO7Y55DXfVlhvQ2OTNnMeweIkYkt r7maWKYa15uPdLRTRifprx1lNOuA3VExj7oehq2JnRrGky/K/YRyqn/zZMuYJxk1R9s2 cjzQ== X-Forwarded-Encrypted: i=1; AJvYcCUYFfDtjl7Ri8yA89COgxJJH/HrUd3826OdY/gHS36AK+vhrTPshlqq7BRE5YZoDQPPKWetQpXWjY257FshJelEA0y9P7YE9+WWXnnD1HnbgrxzCQk= X-Gm-Message-State: AOJu0Yyy+5bJSVJXTFP9GVIrShFLeMBJowjD9uWVMRyywNgiTwQb97fz eq/6NhMCxF7sqw0uXF9EoCM7OvSoiASvps+bS+p80mMa17eGV6jitSlNXK+/JRA= X-Google-Smtp-Source: AGHT+IGKUzbiZmA4xkuzW4Obu31RHZOeYQIUKpUb81CCZ1vyHCvuVjk+AQ/mnzT8PDS0gPeY3MKOiA== X-Received: by 2002:a05:6871:b13:b0:22e:c787:5fa2 with SMTP id fq19-20020a0568710b1300b0022ec7875fa2mr6465784oab.58.1714057414871; Thu, 25 Apr 2024 08:03:34 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id mp2-20020a056871328200b0023b6d4723edsm166739oac.14.2024.04.25.08.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:03:34 -0700 (PDT) From: David Lechner <dlechner@baylibre.com> To: Jonathan Cameron <jic23@kernel.org> Cc: David Lechner <dlechner@baylibre.com>, Lars-Peter Clausen <lars@metafoo.de>, Michael Hennerich <Michael.Hennerich@analog.com>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] iio: adc: ad7266: don't set masklength Date: Thu, 25 Apr 2024 10:03:27 -0500 Message-ID: <20240425-b4-iio-masklength-cleanup-v1-1-d3d16318274d@baylibre.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240425-b4-iio-masklength-cleanup-v1-0-d3d16318274d@baylibre.com> References: <20240425-b4-iio-masklength-cleanup-v1-0-d3d16318274d@baylibre.com> MIME-Version: 1.0 X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240425_080342_084111_981D8E6D X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
iio: cleanup masklength usage
|
expand
|
diff --git a/drivers/iio/adc/ad7266.c b/drivers/iio/adc/ad7266.c index 468c2656d2be..353a97f9c086 100644 --- a/drivers/iio/adc/ad7266.c +++ b/drivers/iio/adc/ad7266.c @@ -371,7 +371,6 @@ static void ad7266_init_channels(struct iio_dev *indio_dev) indio_dev->channels = chan_info->channels; indio_dev->num_channels = chan_info->num_channels; indio_dev->available_scan_masks = chan_info->scan_masks; - indio_dev->masklength = chan_info->num_channels - 1; } static const char * const ad7266_gpio_labels[] = {
The masklength field is marked as [INTERN] and should not be set by drivers, so remove the assignment in the ad7266 driver. __iio_device_register() will populate this field with the correct value. Signed-off-by: David Lechner <dlechner@baylibre.com> --- drivers/iio/adc/ad7266.c | 1 - 1 file changed, 1 deletion(-)