Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp834527lqa; Sun, 28 Apr 2024 06:27:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnB+Tb19/u07B0VZzI3Fm4qAxwJBhPcdYk4ogloU2H5rdN2jdmVmjmJzTckRHJZZes22zKRaAgupGGalYSgF0CykH8Z0dNZTxq1atM5g== X-Google-Smtp-Source: AGHT+IEzRv1xzoGHXb2HpfBVN3OXjUowWLaRGoRM6mtS3oaaWrOCGSBbvJ9zTstNN051vu0plJVu X-Received: by 2002:a05:620a:460f:b0:790:ed33:7ec9 with SMTP id br15-20020a05620a460f00b00790ed337ec9mr1905185qkb.47.1714310860498; Sun, 28 Apr 2024 06:27:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714310860; cv=pass; d=google.com; s=arc-20160816; b=FKUAxyDjBZF6sBPeAMKPJ2NuQzYYQrktYzJAIdbHNkZszqClcaRY0EtOZ29ZRQ4uE7 NLgYhlLmwDwNKQ82ubj1hXOi/DgYJHYvtDs3R+rtX819ORgfPbDTgKXAh1Yyt12I/eKd jse1ujiiaXX0l52QpAIbHtuEFAP1QvZqG2ZSx+6j4c9MtgXdHdEo/ZZz/K4/Tb/p0eMa AM8BI6M19RQ+uAxolj0xF/KeJqMRmrJz+fEVEZc88AroeVOb32lIUZQzDU5gLYCnLEaN S0ylrWJh79dINXoPs3chgzkCe1/2eJ5HBPIIy+DKBSHFIelNPhFmtJLx7n57X4kyVJ4M ExYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=kx1PtIR2VvkBVBrtI5VNLj1uTyifgK7ShwwgUYkR0Uo=; fh=qw+4tl2QB9x2jeFHU1OQbW7ArumqVNp8kLkq2T/uAek=; b=XQQW3IKTT4jUG7hDa0jNN6DhPaHHwF54y+hD72e5SbmWuH5Zjj/Uoa/1fudTZk/Gpz gWEGGl0djYnHzu7wCf5Mwyeo35P4JOs15asb+n3b0Kwpz8tr9dFmEEK2Q5Gdv5OJZd45 Nv22O2MdNwQA8WpHvEYdSrRVIegoEJuUaf9oYO5JA83YKlDnA3fxjL14HQhFGFaX21YY FHQE+dPMIVYjOAhkB4R4p5RgCkqd9zTsyQmdHT+llLQAfLQAYRtPVcVcAbeBwDmSP0JK +e5coEFd5cBkaprj7+MiulyCVMV1KmoRmROb4QvFUqMDCBDDNQ2SKs1Q5XkA37hSqwEJ vYFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DOdaHkiq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161437-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b17-20020a05620a127100b0078ec0e435aesi23672644qkl.751.2024.04.28.06.27.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 06:27:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161437-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DOdaHkiq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161437-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 392331C20E0A for ; Sun, 28 Apr 2024 13:27:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B01F6D1BD; Sun, 28 Apr 2024 13:27:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DOdaHkiq" 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 8B6343A1DA; Sun, 28 Apr 2024 13:27:32 +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=1714310852; cv=none; b=dHyUajlAoJGW5KCUPD+BN2DDGR4Lwfl/SiOZaBDQp9EB83hiifnRYX8wNlmQ9n4gfrPgak6nkpa0adEB31TRW/tHhLEwEU1lBBO6Yj0a09LaISAjC6Q3b43nGWQMra8qGbhHdGSiaSvpIOjUtOsZfZk76EqUSmlXgq5dfwdmRZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714310852; c=relaxed/simple; bh=UeRn/pJ41orv6XOdXZFOuoyklETajUXkK7V1tSlZmtU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Pc61QZzC5IQ/NwqZ3dxPEIjjFUwmDtUIsv4CDPtkjID8FzQVmnLnizDH5IiURgzDuJMtum5OyNig8PkhGH7/c9tGELykwskLl6v7rI4Ghl9ca/o3VZGnW+94Qoq4i+qR06XLxshDk978TggxnIo/BKo+BRu1Nje0xaMA0yAfI9Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DOdaHkiq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51406C113CC; Sun, 28 Apr 2024 13:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714310852; bh=UeRn/pJ41orv6XOdXZFOuoyklETajUXkK7V1tSlZmtU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DOdaHkiq5iRVyOlk8mzyS4b31++a8Qy3V/BEBddxXEsZU4VwDJJYUgdIhGLqVA8Md rURcRHUfDtkgoNE+Sj/kjFsxJf0uKspDKYH2zhGzDiMcfkkz3F9oip8lhIvM1M737p xIj54kxkTmwu9y3V86LWA2tt8qE/nuKs7qL7ROrY/BSLuKaDkmWU0LvSyJjdVXt+wC RwAR/qGoUeFEkHr1igNYkn5uV7XqDs0W49PQ90/0HMZBgzPR8AYQsnf3gyjGb4YVsw hxcbod8LDoz0ESX9eyT+ommuZk0SRwXDPb/yanpglS6nzWrwHSN/3Gyw1hLK/G6uVV ZAXCcC7Vx7oQw== Date: Sun, 28 Apr 2024 14:27:19 +0100 From: Jonathan Cameron To: David Lechner Cc: 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: Re: [PATCH 0/3] iio: cleanup masklength usage Message-ID: <20240428142719.08363889@jic23-huawei> In-Reply-To: <20240425-b4-iio-masklength-cleanup-v1-0-d3d16318274d@baylibre.com> References: <20240425-b4-iio-masklength-cleanup-v1-0-d3d16318274d@baylibre.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 25 Apr 2024 10:03:26 -0500 David Lechner wrote: > While working on other patches I noticed that a few drivers are setting > the masklength field of struct iio_dev even though it is marked as > [INTERN]. It looks like maybe this was not always the case, but we can > safely clean it up now without breaking anything. > > --- > David Lechner (3): > iio: adc: ad7266: don't set masklength > iio: adc: mxs-lradc-adc: don't set masklength > iio: buffer: initialize masklength accumulator to 0 > > drivers/iio/adc/ad7266.c | 1 - > drivers/iio/adc/mxs-lradc-adc.c | 1 - > drivers/iio/industrialio-buffer.c | 2 +- > 3 files changed, 1 insertion(+), 3 deletions(-) Applied to the togreg branch of iio.git and pushed out as testing for 0-day to poke at it. I can't remember that ever being set by drivers so this is rather weird. Mind you our docs used to be less clear on what drivers should set so maybe that was the issue. Jonathan > --- > base-commit: b80ad8e3cd2712b78b98804d1f59199680d8ed91 > change-id: 20240425-b4-iio-masklength-cleanup-86b632b19901 >