From patchwork Thu Apr 25 15:03:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13643533 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 EB237C10F15 for ; Thu, 25 Apr 2024 16:16:40 +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=36ithArGPnjlyu8UAWboBgoxd3cfW6shxknUNjPFMpc=; b=hf/UTSJ24yx+tP CCTEPBhKhvP5QTxaxVIOBUAQE9gNeDKGertfao8MdOOoTN9wsuScUQ7HJOOEFUhyr6PR3yGKiTXew DmAiaQ48Qoc+jZV0UVNJcnJ6r2O+4kNdcdzni81d9SB8cA3tYrEpVZzDDCZrZdI9iZqmTrR5n05cY hWaqUCt9LJAp3unhVZl3y1mELPyngkE75tki3dsX8IR4Ps3WzK3qyrIMLIFvIwM9GfL2E+kRW0rl7 BJvRsK403gZICP0Vzv3S1eHEuEWukiWaUo+tTwpkFBYDPA9kjt5m5WujGAd6FBYk0f0Bo2JZjig53 4j7CJexAm/lDROtJztLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s01lv-00000009K6O-0Gd7; Thu, 25 Apr 2024 16:16:31 +0000 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s00dR-0000000902x-3Y0Z for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2024 15:03:43 +0000 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-238fd648224so438828fac.2 for ; Thu, 25 Apr 2024 08:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1714057416; x=1714662216; 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=FuUgN+eqDnD1TSwHoUcLirGapuP4idukeuGNZ2DNfLI=; b=H8cjwG4DzSXACGgYLIzT20fkb0EHe5Gc/Ti8zZlcEYPO/f/rzoAF9BxmEhWMOCsDdE C9jfOHfff1FKOLKz2xZrXhqxRhum2xYgvIKwpHboXVFzwSP88QO13r8bW9sSg/UZlvMe fBijeloW6w3Fgp2Lc0wCLGrutPcaqaYTpsdXOHgG4HGue+DOnAPV4QEzWgdzpxVGHVGr iQYAszn1SuUCjUK6vHnZtrhhd4egXt2PSk6S12xeDnheDmDwZ7ixq/AMvJ5F4QJO/DO/ pHzDybHibhKo/McByEMEBj1orU0K9ysWQY2lJbb9vJBF7QcNv/iGBILN/MWJiTdBclJA 9JEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714057416; x=1714662216; 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=FuUgN+eqDnD1TSwHoUcLirGapuP4idukeuGNZ2DNfLI=; b=Q28MEB5YVtTuRsvRSjVP2pC/SB4Ea4Q1Y/kd/CyAXlAQQ6ZwCmDUbmCjtYFIN+ims1 A12cVcwIAlghhJwnL2vBS4Jjr0rgCIcenRN2NdULcLkHGNNtOAGIuxyV1qhRM8LjsNaF c0QrBGUtfFADXhuYOxN+DCBRFZdiVibC5vK4DbqIC/cWYVaduS3te5L1n0dvPrRmCDY7 z+AmimMGLspO8brJdf8TIQ7a22vpMqcFFGZ5H43SBK3MXqu0aPv/8sPD3ApTd7f+otZ7 14mUbvV0169jb+JOHbV4WVRwqSx14YxY7LFfPeKkTRZUO74FKZdwN8E05Ez0h5RXb957 t+0w== X-Forwarded-Encrypted: i=1; AJvYcCWje0qCekQdnRqQquK2dkcbo2GweGUYHHe2cgaS1ZYuAfwvzXbYktU6MbEBYm8cLe6PbITJ79+Q8WGZcUObOC8LR1SH8DiuEipxhc/TijtiCqeYV+s= X-Gm-Message-State: AOJu0Yzxe0Vm0J2PIXrC61Foh1Yqt+CPOozob9iIZHDcJpa103BdYa4W Vf1YR8Ljkj0Tzg5mJO4A8kuqGk9DUbHpi9jJcJiv15qa9cwHGIZesnntKcI4sb4= X-Google-Smtp-Source: AGHT+IFvAtaidOO7h0zkTLuuS0Zuix9lqDgu9+DKxThfm0jLTYtjgYSEE2bX05vg7lHkXPUfguF9Bw== X-Received: by 2002:a05:6870:9f86:b0:22e:de21:e084 with SMTP id xm6-20020a0568709f8600b0022ede21e084mr7083274oab.9.1714057415874; Thu, 25 Apr 2024 08:03:35 -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:35 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , Lars-Peter Clausen , Michael Hennerich , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] iio: adc: mxs-lradc-adc: don't set masklength Date: Thu, 25 Apr 2024 10:03:28 -0500 Message-ID: <20240425-b4-iio-masklength-cleanup-v1-2-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_080341_934999_7F1C32DE X-CRM114-Status: GOOD ( 12.28 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The masklength field is marked as [INTERN] and should not be set by drivers, so remove the assignment in the mxs-lradc-adc driver. __iio_device_register() will populate this field with the correct value. Signed-off-by: David Lechner --- drivers/iio/adc/mxs-lradc-adc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/mxs-lradc-adc.c b/drivers/iio/adc/mxs-lradc-adc.c index 2e60c10ee4ff..8c7b64e78dbb 100644 --- a/drivers/iio/adc/mxs-lradc-adc.c +++ b/drivers/iio/adc/mxs-lradc-adc.c @@ -724,7 +724,6 @@ static int mxs_lradc_adc_probe(struct platform_device *pdev) iio->dev.of_node = dev->parent->of_node; iio->info = &mxs_lradc_adc_iio_info; iio->modes = INDIO_DIRECT_MODE; - iio->masklength = LRADC_MAX_TOTAL_CHANS; if (lradc->soc == IMX23_LRADC) { iio->channels = mx23_lradc_chan_spec;