Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1453730lqt; Fri, 7 Jun 2024 21:27:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbYaGZPgP2/ZjUjB+s0LLxusgtnzlBAvAovDcmsA15Hj7B4brPNN4uJZ5BBAIgMcO23TRs4bSAgPeKquMHfEGEcblGZ1QIiGGTJfnrMw== X-Google-Smtp-Source: AGHT+IFCLjhv6tz4UHbjkscPGIXtLIAM3SVsXb/FRMbI6BNZidCFMyVkd9y4whP//v25iYA0kuI7 X-Received: by 2002:a05:6a00:80b:b0:6e8:f708:4b09 with SMTP id d2e1a72fcca58-7040c6861d2mr5378628b3a.15.1717820830984; Fri, 07 Jun 2024 21:27:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717820830; cv=pass; d=google.com; s=arc-20160816; b=cDKIO2WR5UamXqP95PxB6PK1+fYmIEM2XRyCoouuehajGnDVGvjttFPcXpwqgJd08+ 0qXbfpRTxqJbDNjD2I5eh6LbrtthV4CiPTcCo/4z1ont9baMppuI964/b5d7GHWYKmGu JsiyNcqzS/8tCJS0zZYZ380UHJq6kezrut1AxH4gZKfPYFWWDi/1kAnKXScNFE1ck3I2 9VvlvPwpLjGvEzV6+tc6aTHbxr8yzxA/WCFZSEMicJ3B1iyYkGEP0bbqOTpMiHmHBxZV Z9TqpAMNzhjgH2PWZUVrkpjFBITbXvgeBXCy46Pr8F0mDTfxMut4SFgd3Cat4RuMdoMw erqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s4+HeshVfzmG+iW9H1/f8wK6R+jL7lVVatFTYBjS0gs=; fh=DZQUzu96mBatI499FLDW0V2oixobMpSbJ6jVf7RqfsQ=; b=vQWm9zM5MEjwuwCmN6ZKZ5yVVrliHeXQeW+up57zs0gpuWBmeVniAjxGzKv9n18ORN kk3VnA12yNHNq5ERoiqsVtu1M9CBH7QkCxb/R6Vh42NxABLUxNcfTgxIq+j51uNV9FO/ fCMiVlVsde1Lw+aXqxrNp4vijFcGqoKaCDIynbHAU7d6TeVBoAibLlRD6QyYStH42OmR FfG69jMMPK5Jc0vLOrPn3+Ie3/2lJ52yOT3vyNB8FErmxWp/G8b9DJl7DgDMO/ldUZb+ thXr6EHW8kWDJQGUAckEji9SDajXws8UG4Vgau3cL9Cn9FzYS/Uwd0nJ64GJ+BnoDU+T j5Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="IzjQC/6H"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-206900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e47862c958si1738826a12.24.2024.06.07.21.27.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 21:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="IzjQC/6H"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-206900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ECF0C283A6A for ; Sat, 8 Jun 2024 04:27:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70DEC10A03; Sat, 8 Jun 2024 04:27:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IzjQC/6H" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 5F4E529B0; Sat, 8 Jun 2024 04:27:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717820824; cv=none; b=VtiXnwaoHvR8drUX0NlPNa+ufO7kMwRTQekXHzhhDOHa2DcORcGUEC7DdY3TKHkZQpwwOXbcuWZIXzkU8kHkQk2UflI4QiLCAvaLidNlRN1n8boiINvF5fH1whNiSQZSe3Zbalf/ClUtG+xLD+Hi+6mIjNqsxUVhApSUGUgA36U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717820824; c=relaxed/simple; bh=1jRsL3xuhZrL8aYetyp6Vw/OKHguTJHhqUQIIYOKz70=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lGQm/tuF63HGm6lBugyojsTehXm1IUBUP5iKx/aTGSyoVDTrHJH8UvzeqJFQCDsKvDFTbse9U3hbVxTe5M1SEai/G/Z1oSYJTiGvGaNsJD1Aiib00G/+cGwZbfUa3/nL0nqGpMKHqCfXQ0XrGgUluG6ZzCX2eyyGirWyxeY5Hw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IzjQC/6H; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-7041ed475acso568971b3a.2; Fri, 07 Jun 2024 21:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717820822; x=1718425622; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=s4+HeshVfzmG+iW9H1/f8wK6R+jL7lVVatFTYBjS0gs=; b=IzjQC/6HS8MKZ8YT1y0wBy0ZUBUD7WKFJXk1TT9KE0wvaQPiQcsDYnELof4sumFjmu 5x4X4C301GWH+7HILfu+nCCsyZbwWdGHe3fgZuo9aRLEvPmGZyEUec9gbH0ABSOhSSP3 ev4/n+y5ezucBgPCrNgHvg43bsbYSb1ZgvHoJEMBJONeMNziPLb75inaxlMjHGmf53OP lKq1fWZtKtpKItcsRnKibczMyrRlBp0eDcLiKXvPekxXhDuAbZ2c16ZsK+wZvztaZ3J0 mPbQfrXGVdTgslWejdw9NP/kWBdf0+0PgTfU/VVPhcFdFM8OdZYKAZGG1OWFi4qmVmj1 QNZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717820822; x=1718425622; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=s4+HeshVfzmG+iW9H1/f8wK6R+jL7lVVatFTYBjS0gs=; b=qSncIV7QK55ingQnK753H+DpcHMFrogJwNpPLXtMFuJpgISOc0WcOHms81XG/JyENA szhFtpzZgRTpeWv86pPExqLqJOeGPNOyCRC30wUC7BG6GXKPnIhNPrMhwWbqYXmb9jQ0 Evz+6sjXQlzfFFhOLwhxmTOo+qXl27MTrBN7aRsFQzUIZT96mj9g9m8Hhjbl87MNdgxR z9y8hJuK+gaDSuX4VGBAGC0ft955fUVxSalpyzZOI+VN/CRjMHXD1qBkxu8ytU+kioTD q01sxNvnuCjok54LBlYVjfZh2P61VJbXh+EG3Ntbh4ATVB8ZZGLfyi58azBXBapmmW1J Gs3g== X-Forwarded-Encrypted: i=1; AJvYcCUpTXAU7bTaQqGQ/hQdGMC1eVD513xIqQnl60jJKHzNc1fB2Hdxi7zMk5FGx554iQy4VEZptkf4gUfvvQKJXT+zbuaJlKv0HlP4yNK+pT+QJoWUGwIHEdWlGHrizTLKKcHs1KtozCwQ X-Gm-Message-State: AOJu0YwVOCbMp3RMb4Pz2PZZNjGMMffyq+uFQqy8ZUVqDSzHrA8aIM/K ZDhPP77ll6aElnV9Kd0jc2o2Ve1tK2vauZly2MdBVcG5pB2Bg1VV X-Received: by 2002:a05:6a20:5513:b0:1af:cbd3:ab4c with SMTP id adf61e73a8af0-1b2f9acbecfmr4022146637.35.1717820821918; Fri, 07 Jun 2024 21:27:01 -0700 (PDT) Received: from localhost ([2804:30c:96b:f700:cc1d:c0ae:96c9:c934]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c29c22060bsm4529116a91.17.2024.06.07.21.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 21:27:00 -0700 (PDT) Date: Sat, 8 Jun 2024 01:28:14 -0300 From: Marcelo Schmitt To: David Lechner Cc: Jonathan Cameron , Nuno =?iso-8859-1?Q?S=E1?= , Michael Hennerich , Mark Brown , Liam Girdwood , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] iio: adc: ad7292: use devm_regulator_get_enable_read_voltage Message-ID: References: <20240531-iio-adc-ref-supply-refactor-v1-0-4b313c0615ad@baylibre.com> <20240531-iio-adc-ref-supply-refactor-v1-3-4b313c0615ad@baylibre.com> 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-Disposition: inline In-Reply-To: <20240531-iio-adc-ref-supply-refactor-v1-3-4b313c0615ad@baylibre.com> LGTM Thanks, Marcelo On 05/31, David Lechner wrote: > This makes use of the new devm_regulator_get_enable_read_voltage() > function to reduce boilerplate code. > Reviewed-by: Marcelo Schmitt > Signed-off-by: David Lechner > --- > drivers/iio/adc/ad7292.c | 40 ++++++++++------------------------------ > 1 file changed, 10 insertions(+), 30 deletions(-) > > diff --git a/drivers/iio/adc/ad7292.c b/drivers/iio/adc/ad7292.c > index 6aadd14f459d..aad4b782a3d2 100644 > --- a/drivers/iio/adc/ad7292.c > +++ b/drivers/iio/adc/ad7292.c