Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2827319lqz; Wed, 3 Apr 2024 09:37:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWMxjS4+vbyRncFLCk3Q/2jqMpivkncT4ps0QV31RxOGw/QlmgzPRK0hwul70bo3Xl+yMB3dFluFz0pwJfGTRyqoJVl8Rl0PXM27Q+msw== X-Google-Smtp-Source: AGHT+IFX5buQvdAp7aow5xf0v4wtAsB3NWApV/bmiF6jbBiCGb9pQTV+vhzAxCuBebyssG/7Mt8+ X-Received: by 2002:a17:903:2155:b0:1e2:a325:4c92 with SMTP id s21-20020a170903215500b001e2a3254c92mr487731ple.59.1712162220235; Wed, 03 Apr 2024 09:37:00 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p16-20020a1709027ed000b001e0be222e6dsi13111635plb.189.2024.04.03.09.36.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 09:37:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=lysfZgIV; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-130166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130166-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3722CB31C3C for ; Wed, 3 Apr 2024 16:05:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6193814C5B4; Wed, 3 Apr 2024 16:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="lysfZgIV" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.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 C6EF614C5B7 for ; Wed, 3 Apr 2024 16:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712160189; cv=none; b=lHQpMPMQkFIq67iLnPVE4XFhMUrvdz+K4opiGjpfJupUyrnf3lyg2hbE7IZXkxbLBlr8uXrLHqfZN4GlKNnm0sz6B3S2ijZ2xYT8rQzs1u+OXJcfEdeMKqikNqsvJvIS+fHYnJmn6lBlNWq8e75P+tCFQdqInFxbgZUAzjp2lVY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712160189; c=relaxed/simple; bh=bTvBBqvM+g5SfRgI5quUH3wnImmHOZ6hz4keoRzRwYA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LQOQ6IjsopQGIIkPFYeIlMh7SGyhBVR0ULWYQQPzHXA3oNfZPDyvM4GYX9Bn4S99dncKUuq1AE9BNMjr3XMAl109ePc+/T0hDMpfcDk+ruJ49g3QyWkl+vjRXnAuNC6UD07uo05h7c6zRUvWkVPa/74dS+av1CfkA1U+eEX+SvA= 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=lysfZgIV; arc=none smtp.client-ip=209.85.208.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-lj1-f169.google.com with SMTP id 38308e7fff4ca-2d83dddcd65so10502691fa.1 for ; Wed, 03 Apr 2024 09:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712160186; x=1712764986; 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=bTvBBqvM+g5SfRgI5quUH3wnImmHOZ6hz4keoRzRwYA=; b=lysfZgIVx3yGO4yCEHgHksvCJyLZJOSKNM1o51kCRsFcKt0ffydgvcacs+e2CJhalE amAe2kB1J0l62vqS481GGm6zr5P6H6fPT+I23+9CLsuu4DIzd2D37pU6C9y/8PirFQsu lPVlCpg0pegWs+hsQlR2ox+noaCGJ7xCpyCuBtYb6PSBnkmfkMBwel9LJrlJoDpibqQD haJURm+RDc8MLLnWFmKejOIKGH53qLC1WOggov0G9wLXqQ6rjgFUw5ymVDlkz5uTotE5 jOgHXEJsvOkP5H89oJD4KQrxdbIam1zNMspBuXUy+vtL2p7Qz1XeTHHtz9VSAKxdIiaQ OmeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712160186; x=1712764986; 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=bTvBBqvM+g5SfRgI5quUH3wnImmHOZ6hz4keoRzRwYA=; b=hIwCxsHGsCJZXaCnTQOnBHaNcy3kzYylnTM7s+blELgtQh0swoF5NlbbntgFb2I91o HmfZdRGGVzMAoZyp+X7cRJrF8qjoG28BVaBsjw8NhkBBb46qIlVECMXOVLvvhJxQq+T+ c0N7HQeWqVeMxYc0BAmyfuMd7ALsnV8JFPh9pnwm/auEGJl0nctHTjJRgvt7p0KCtJQw XgtYLFhWh7I23jC1tEbg1JR0sLEr5wQoum/sgWTHJLCjPpgkDH+c+IZODGJnu593w8FA sJjvcYMTU4DkMA/WKhtYtnmkYQnHl7Xxmmio5NI8fTU4NmcUccDW0mriTx2KxG/Z4Pmv xsmQ== X-Forwarded-Encrypted: i=1; AJvYcCV3YrGbovR1VsjkkjOPQahQv++cAC9pcQ7H2mSCGwNFpSODQsXQgCKxqmH09iVoK63F3/Uzudqp2MpQTTyfPc/Ru1GFs01HfcDPMm1A X-Gm-Message-State: AOJu0YwkAywODcpo4LyHcY1zGDgfXCyiGgZOiz9syFLwc2LVzGdSIo9y pK303N58V6DAaIEABwyQyisswVhJ7FzUswFq1usG1/KxYOX3sbgdMVdDB75COu/bPE+JFofnVhj kQZHr9fwkaz21Uwd4+uSZQEoIxngIGQdML4FT+A== X-Received: by 2002:a2e:a68a:0:b0:2d6:fc0b:f122 with SMTP id q10-20020a2ea68a000000b002d6fc0bf122mr9938lje.18.1712160186030; Wed, 03 Apr 2024 09:03:06 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240401-ad4111-v1-0-34618a9cc502@analog.com> <20240401-ad4111-v1-4-34618a9cc502@analog.com> <78cab1a4-e085-4df5-bb8c-277fd5ec3d70@gmail.com> In-Reply-To: <78cab1a4-e085-4df5-bb8c-277fd5ec3d70@gmail.com> From: David Lechner Date: Wed, 3 Apr 2024 11:02:54 -0500 Message-ID: Subject: Re: [PATCH 4/6] iio: adc: ad7173: refactor ain and vref selection To: "Ceclan, Dumitru" Cc: dumitru.ceclan@analog.com, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 3, 2024 at 5:03=E2=80=AFAM Ceclan, Dumitru wrote: > > On 01/04/2024 22:40, David Lechner wrote: > > On Mon, Apr 1, 2024 at 10:10=E2=80=AFAM Dumitru Ceclan via B4 Relay > > wrote: > >> > >> From: Dumitru Ceclan > >> > >> Move validation of analog inputs and reference voltage selection to > >> separate functions. > >> > >> Signed-off-by: Dumitru Ceclan > >> --- > > > > Same as my comment on PATCH 3/6. We would like to know why this change > > is being made. > > Move validation of analog inputs and reference voltage selection to > separate functions to reduce the size of the channel config parsing funct= ion. > > Good? Better. But it still only says what is being done and doesn't answer the question "why?". "to reduce the size of the function to make it easier to read" explains why reducing the size of the function makes it an improvement.