Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp314638lqo; Wed, 15 May 2024 15:55:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUO6Ff/VkcwCWEztX96ani/VxgSWT9Au8Wag8Waq3iVstZodYQMSIW4vUbP34tBSGXzTbLmjGmOo2WUkEhKcN2D8vZPJ5+WWs7qnDdgmg== X-Google-Smtp-Source: AGHT+IFyatKcU/Qx22chQ5ZZhFaQFQcxLXrc/sowWMFPKPPGBePk08ufWlIQvdLmBLY2qS6NXvOk X-Received: by 2002:a50:c306:0:b0:572:a049:c4bb with SMTP id 4fb4d7f45d1cf-5734d5ccca7mr11500907a12.20.1715813702320; Wed, 15 May 2024 15:55:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715813702; cv=pass; d=google.com; s=arc-20160816; b=kd1i3H+RBQXJQtKRAJcdvLCPWCC3IWPHRRDXl7cJ7GTXIp8lV2GtlCYfQ2LwM0p3Po vyB8hom/FGvh2bw+WEVgxWLkxEB1q5XSHWGE+soRYONRtKkNZAphg7Yj96J/yyWqJxt8 kJe9nxETwSwl7LDNbxTQ5fDXHNJQn0hBc/2GPlH7497WaP7M2MRysNs40AgKZDzV96sk dpXPZL3O98+7eQOHCjqMVqVcVi4qkW0N3/l8CY18G97wofunS6iiv8lmBFMCU9JgdYiX O3kppnPT8oJrHrsAxyckyc3sed394ZsWRiXpFJVLknVqKJ/IrnjWxgVEc2rS46WewKaO nqJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=JTR8dQhkwufEMJDvzAGSNaBiVeFMhzNSh23L6NaBC+Q=; fh=mdqZYCzHLSzPHHKlAxrj+UdbFlEF4qhthnw/RYXwv9M=; b=Tks44G04HeNiPQ/n36dGVUp4C0puNoTsFy2PnyIpG/ZxBTIGKrqsM1jsyVnc+K33D6 Eyb2DJOZR6FjUSZpl2n1mo7IHC/EhEbZ0eMDtDpN3VksNbeMytfBD7BBUj7rJv3jht2y FjBl/1HVbg93IvGX/m7am6jSnYJEijMuG0JumPz4w5Tbk3XEMlGGAKVVLI6uP5t8mZHe wxsmKI+hjne02Wky+t3C1n83K6JxjRX0ENLy1aYGpe7ywQgiMFS1zuGHEQdrIOBZ6hZ/ 0GTuQ7KT/YBEJ1s1qkA3FdcF5wMKz69vJbR0bMSp27BdmtrADFBw6JsubMfHt92TOulW YhuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="vwN/CmyK"; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-180458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180458-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beac900si7949128a12.137.2024.05.15.15.55.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 15:55:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="vwN/CmyK"; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-180458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180458-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 148BB1F2180C for ; Wed, 15 May 2024 22:55:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF7ED4206C; Wed, 15 May 2024 22:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="vwN/CmyK" Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E6683FBA7 for ; Wed, 15 May 2024 22:54:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715813693; cv=none; b=htE2NGEKk5xcmBTVcJcziteprA2+itDcsZ3En+Nrez+zktlumBBTuqD8idr8yPxyPrluxh1TnXuSr5oOj9dyTXgD6bGOfF4HA9Cq230Y1tFepDFrjcW/XKhSeiXR/uf9VmtROzJPZJC0K99ZS0/sUk9KR+t+bdcrkUS9alCmW6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715813693; c=relaxed/simple; bh=NTl/aihEJcTuHdTWgEWUNqFvQPS1+TjI61Y+qlo2AzU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=dmrVWxxhXGVBsoCGN5j9GHYzja6HuWDZdU+yFUqOMqReCjR9t3Xgl6OFwlB9yX5rRPJsxxa9EIiczktQ85OSskikoh/4U/ktbsa8NNz3yvPSWMpfjLD/U+XxfztCPwQo5zRuJRiFXDDWOOZ3+2xQZM+R7QdRlVbQugEfuiUIU94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=vwN/CmyK; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6f44390e328so6840726b3a.2 for ; Wed, 15 May 2024 15:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1715813691; x=1716418491; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JTR8dQhkwufEMJDvzAGSNaBiVeFMhzNSh23L6NaBC+Q=; b=vwN/CmyKPuu+CL/bHNbWXwtFRxCpbdCScTZCHZnq0eRlfT/EXESbnG9f4WpIRyGH4V SEhwZgGrYKRTnpv/3s2wiAWdlZ4/lluX6MOD8hi218Po+ixSRNzqXisOGBUp6TTMoSZ9 5b53un8s8JBrb+zXdQR3BcECT77NRzyziw2lkBs5oNWlqomIEF5AqOYAcV2U+c3vZez2 qMk+SvI+Mz/EQ+1vqpSUf6FXHs72q/7klLV547GQcSjlnGlmLwGy8F5Ueh566ygLw5Qn s/CJ9SZ8LTTi10Tb0USWqWc2sgSySTwJPlwtt9/74oOhwZzcQnArhyaqBSFOxbTGUSwA Bw1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715813691; x=1716418491; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JTR8dQhkwufEMJDvzAGSNaBiVeFMhzNSh23L6NaBC+Q=; b=wFwC8pvqln9idaRNQvammz+bWjvMtW/JYQNbgbZJaH12Yh/50j2OZFOza2DQuvEsp5 Vhb+ytMaPu5A2FHfT2iSmLVh/ThJHGUTwZYGGysQc1AZIawXlW+YB4Al0hn3dI3Y2kaX /RWbxyVs+3nzphcxbrn/etl0Oli0BBG1mnOm576OJGvqKU9N5DT6Cbh02+sBh89P9HNx /vlQMg13wN1hlQ6AgqvZH3vIdbiyOf+iMq/329/nVevXORXQWB5qhUgLfosFhstejib4 O+7uGecUqXkNamehOFY1KfWWwDzjuQm+j203wBSnOa8ChuwU4uAR9fNb3rP6sRtBOWql cMow== X-Forwarded-Encrypted: i=1; AJvYcCXPVBJ4dnjJyaSTF3dJ93PbuxEiLaJh1DKxONZCAN1+9cxg8KeYGhY/GkZhjf+msIZpPQFX5yW0thglDvnfRmq5YfuCrQrmmWGdOFqU X-Gm-Message-State: AOJu0Ywib+XXeD/ozv0UjndMov5uJIE5lnaxrW/VNJWkvDBWxasJrrT1 DcTHDTI7VRb5I6jM0zYOjdraSYCUSbqOUgJGYFAfvcku61kbLA2tPWYWKkTTQ2yWEE/sXGp6+3x 2d7skAvQ9XWTVpIGLgfWZZKjSfg27n+FM10X5LQ== X-Received: by 2002:a05:6a00:391a:b0:6f3:876a:c029 with SMTP id d2e1a72fcca58-6f4e02ac99bmr23987572b3a.10.1715813691341; Wed, 15 May 2024 15:54:51 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240514-ad4111-v2-0-29be6a55efb5@analog.com> <20240514-ad4111-v2-4-29be6a55efb5@analog.com> In-Reply-To: <20240514-ad4111-v2-4-29be6a55efb5@analog.com> From: David Lechner Date: Wed, 15 May 2024 17:54:38 -0500 Message-ID: Subject: Re: [PATCH v2 4/9] iio: adc: ad7173: refactor ain and vref selection To: dumitru.ceclan@analog.com Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dumitru Ceclan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 14, 2024 at 2:23=E2=80=AFAM Dumitru Ceclan via B4 Relay wrote: > > From: Dumitru Ceclan > > Move validation of analog inputs and reference voltage selection to > separate functions to reduce the size of the channel config parsing > function and improve readability. > > Signed-off-by: Dumitru Ceclan > --- Reviewed-by: David Lechner