Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2079303lqo; Sun, 19 May 2024 12:17:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyUMThLRBf4+2cO+n5nVcYwfhWS3XbU7byKhB3YnTZ2sWdtAq3fcZ6UBQixxnXPj/sYd57W+uCMWt9p5j3vDCIoULgWMGnHWC0hwlP9Q== X-Google-Smtp-Source: AGHT+IF3fGveuNFBRlWZ1PTRhVFbKg2tohji8O5SlXrClJKuGxK2D09gaCBP8KOQ3gKY39+YxZ7h X-Received: by 2002:a05:6214:5713:b0:6aa:4784:6b41 with SMTP id 6a1803df08f44-6aa478471acmr17511366d6.52.1716146264354; Sun, 19 May 2024 12:17:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716146264; cv=pass; d=google.com; s=arc-20160816; b=dqTMRQqrPsfWF0kCTKgEqNYtrxld42uTf1P7F7dCxGGUoAVGGnBQoxO6EHbyBsW9O1 q8HTQvw+e4skmhiXCjQ+0mif/X+ZKgoA1xF6qd/m+7RMqGn3EnvfrAPohAvMIH/IyPMD Ci7eFZTGeFOR0MB6wkSGDjhyLkzkV3c9XLyaLT5ha2hC04NtlCJyYuSGSRZW1/e9WJBp xZp9b3BJytv+P6GyEsGaNz6kQoaB3DvrFDkUttBu6lw5FFTUtaX/iI+U9WOP9nuZCav8 3FVBCJlzLfZmFYWa1oajoh+7utyH3mDNqmuPMkCHz/M/ZE9YcsapftYfOiNNqOe3OzXh MB2g== 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=0mFT2rhSrAR3mo0mzdoHPg2TOhdHKeJ2N2WYB3hFRO4=; fh=Z1yqB6kQLbNjYjFlAchr83Xu527pXgW6bvteIzypziA=; b=QU9dqS/7173y4+ia+Yz2Z3m8hpU6dzTwrB9ixPoTGdPXzD1uTFf6llwf2cHkkejmCD MVjSPuoAx7DuFcAAFaicOuZ4Pt7WhesJTWlJd46O7bayBacnXijdB3Yc6R/MGmSVs2PB /9bvJBrWW/CecgFBdRqW7K7aQRmKBXlLD4ZBlySRxxbokDSQmqu1dK4c/XUaWPyu6CgS K1QeVpmUxLrUNySm6AaBA+DyrSntJHmAp6V5jS2HvH8/FTFaD4N5yrgjGqKCek17x7/a gFk/YjULw6rcCAioSkp/YpM79gDDPh4zj8sV4QVHt6e4IGni/kykVSB1AaxlqdzTLuMw c9jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AB4JTvUL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183223-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2b6365si238004596d6.387.2024.05.19.12.17.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 12:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AB4JTvUL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183223-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 17E9E1C20897 for ; Sun, 19 May 2024 19:17:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 710CD6E602; Sun, 19 May 2024 19:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AB4JTvUL" 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 8952E6F066; Sun, 19 May 2024 19:17:36 +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=1716146256; cv=none; b=Fq3+fjopT36lYKf7f1fBDiPZZH8opzwsX0tufpoAYlrH37SDt7L5CgVPEe+cJ1qzBXbP04GjrWSnmIHp1G+5H/vk+BGKzDbai2XQAAMkW6RXGOvATJVjXadRDj8jcSk+Hsrvbh7oIjlxl9ALiKdZ4rXpyTIylaSC2tL8ZL3puqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716146256; c=relaxed/simple; bh=rirKKuH61jvwiHS0rkmvT98moSQpU+reBVvI8WR3kcE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SyywMM5e41rrqSFSGCfPh0zNWAIrraWcvVk15ErQ1JD1dmDCj7pBRthLLWOceyetvJ2cjuSXcXWlAbYKoGTmxicJLqZRSJJBNW2QoNPd2DkaFBiWvpfPx53jlEvG36dst7B1fApoqiSEJbosp8HNzwqaCHeLY02mr7iEyqjgQBY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AB4JTvUL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0147C32781; Sun, 19 May 2024 19:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716146256; bh=rirKKuH61jvwiHS0rkmvT98moSQpU+reBVvI8WR3kcE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AB4JTvULGuWNeXkM8SGrq8V4/Z1l7qjxuxyMOu0S6XY5+pZ+x37HOmCci5QYMmlzc VKfxdZhBZr9+7xKT7fjAxhLmL8ETlGDvW73X60gUpBK759xxP/cyiag6v/wBrWv4i8 aUublmUmJEFmIxYncF2yZfU3Q/MgqTZm8YaYIzot2h7XBznSdRT9GS8o0TqsWOLVxt jp1FKWMlRw/gMGbr3Z5vqCGYpJd6dp+cVZ+VlXQZdmmKSOnD3eNly9gyRmJWMwB7MN F7ezdYbEUHmJq6fjr51BCoETGpJTOICxjtIAde7NadM7Awi45Pl1qSMG9S6IO5A1bW aSjJ/r+p+fi2A== Date: Sun, 19 May 2024 20:17:24 +0100 From: Jonathan Cameron To: Dumitru Ceclan via B4 Relay Cc: dumitru.ceclan@analog.com, Lars-Peter Clausen , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Conor Dooley , David Lechner , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dumitru Ceclan Subject: Re: [PATCH v2 4/9] iio: adc: ad7173: refactor ain and vref selection Message-ID: <20240519201724.01f190a4@jic23-huawei> In-Reply-To: <20240514-ad4111-v2-4-29be6a55efb5@analog.com> References: <20240514-ad4111-v2-0-29be6a55efb5@analog.com> <20240514-ad4111-v2-4-29be6a55efb5@analog.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; 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 Tue, 14 May 2024 10:22:49 +0300 Dumitru Ceclan via B4 Relay wrote: > From: Dumitru Ceclan > > Move validation of analog inputs and reference voltage selection to Odd space before M > separate functions to reduce the size of the channel config parsing > function and improve readability. >