Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1342441lqs; Sat, 15 Jun 2024 05:09:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbRu3KDbxb6DE7E/dn6QdL5CAuopkGAzIRJmRt5GdnBHfA6XKCMYzJZ36iUMf33xIUIFFJE2HuKUbnezQUkYkbYsaL1eAl/Qh/kWQZlg== X-Google-Smtp-Source: AGHT+IEJjgLZPcsnL212Yg9ZIKFQA9Zpl/A6wdgqEk4A1uupSQJxFdalmzEG/PRBdBqoABSEkB+S X-Received: by 2002:a17:906:4555:b0:a6f:523a:8e93 with SMTP id a640c23a62f3a-a6f60de2129mr335498766b.71.1718453355532; Sat, 15 Jun 2024 05:09:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718453355; cv=pass; d=google.com; s=arc-20160816; b=I5E/9iBM7hWIs/Hdw8KjT9m6C93fITiX6BHN9ZirxQ+4EXU6QAPVgcAc2q3yeDVEHL hSCgPwC1+wEWmS2OlX4+cyZT8CUb67LHJm7OdkkOSJ3n7sTjkB1MtqLePdCaOsqz95nr T82JgLbEy04v9ssZqytXbNygBUqwqEDFkUdU5iNnijjCbJ+qa8CQqqnFnvnJF1jmkIa7 O1q/wMba0oBZQ1dNDEvIKuo7m9+bVgpK+Mco9W6b+iBNJuShsLgnkmR8XDBp8ngyPyku Cq8W79njRcFKw9mU+7KNfnt60yiW0bRrow39CAQOamV+a1NbaqKI7TQPpTZ6PTycdBmf WKIA== 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=1G99yP9jaKQn2nyyYKpj2lxwvgxVzVEJswon2k/SWj4=; fh=1OYN7UTw6sqg1Ts90jtcwhXHbG33WTaqvSl90mG1LnU=; b=m52pBYamS3gdXoSibXJxCTVz9YZsg0cOZSuTDHI9mjnk5Z+1X13pz2ujGE8lDdJzfW 1+53zIQFyaQMWUomaJ5Ba8jZoyF7kHwyrym2GvLNOIXs7utbct4AhfkMKD0D8+OynWZI rQo+11+vNa3bDWTzdgWP8MClc4cngSmH/v26GuK9NcoTJhkbJSmV/b62H2qpk9yp+PBi h3E1aGw0wWcNKueLAFrBR+7Thcxj/DioGmNn+rMAUO0E3a1X3KW6ds+vQpONPzkUsWAY tvu78Mc8sA/xBXyjQFOt4oNvCUNhagWRg5FtPR6tYpP4tWLCfxiVITe/W/UBgSJQ/LbZ QHIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MI/Tb/Y/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f5dbd8931si218834366b.1000.2024.06.15.05.09.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 05:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MI/Tb/Y/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215867-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3D0FA1F21F0D for ; Sat, 15 Jun 2024 12:09:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79BDD45023; Sat, 15 Jun 2024 12:09:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MI/Tb/Y/" 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 95F0222318; Sat, 15 Jun 2024 12:09:07 +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=1718453347; cv=none; b=LNsfea05nZn2ar9RcZrEd79R6KtYJBDtWjWmm2P9iNkuDPppUW/ia4Cv/o/rdE+ia13KbcoWPKTSZY34x5EQ02nG0q5cIf3itHYC8FkUnK5fx6g4UnKQ5X9Xmk5iIRbc5B2ogihytJIiR3iZeX2HqNqiO2GJl4iAB/H6VgTx3y4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718453347; c=relaxed/simple; bh=o9CKb0p04y3vdHKYxcqijUw8AEgxUBS8t9UOrGfPG2s=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZxJDgkp4wWeW1u0BnyIAv5lecHqA6uiCJcQNfFwWttlodFXGgqoI+dotUAz8+er2eqN9TpylSf2O2aITPJlSsuTsKPTjzFXLtcvc0iVhgH3SpSc9YrTDsj906dD0XmASZNft3qoDG9BYiLWS8WXvFCyCNRghr+esWAkJMJm1hbk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MI/Tb/Y/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 744D1C116B1; Sat, 15 Jun 2024 12:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718453347; bh=o9CKb0p04y3vdHKYxcqijUw8AEgxUBS8t9UOrGfPG2s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MI/Tb/Y/EjaM2jZGyACCm0aM6Sza+JV1dNmxrjLLZPP1f7BpaPfps11NuXY6lV26T +M3/99Rzg4DkQSTRZQWgZigOqqmrwGl1SsRGNtW9EADj/g0Gtq0vBmCCwC2dYfee8G XQ8NuXLzp1KmPIwsTKp2qqQTgdpvRW7+T3uvmW5I4KFPS1OMWKi7EAw+YFHvDmLJ/O ax+3Rrd27EoHBQnctd3+JY8GLxgCv67NivkgX+QIKYkvnrQ3ezNxqhWgg58d5S3HNj uL9eUMVtfSt9dD8hIdoP81AUFy+J6dNyiqNBOkgh/iYZRqj5t7htqTbac4W7W4dL7D UH3dotCoqhOdA== Date: Sat, 15 Jun 2024 13:08:58 +0100 From: Jonathan Cameron To: David Lechner Cc: Marcelo Schmitt , Nuno =?UTF-8?B?U8Oh?= , Michael Hennerich , Mark Brown , Liam Girdwood , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Alisa-Dariana Roman Subject: Re: [PATCH v2 1/5] iio: adc: ad7192: use devm_regulator_get_enable_read_voltage Message-ID: <20240615130858.22043725@jic23-huawei> In-Reply-To: <20240612-iio-adc-ref-supply-refactor-v2-1-fa622e7354e9@baylibre.com> References: <20240612-iio-adc-ref-supply-refactor-v2-0-fa622e7354e9@baylibre.com> <20240612-iio-adc-ref-supply-refactor-v2-1-fa622e7354e9@baylibre.com> X-Mailer: Claws Mail 4.3.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 Wed, 12 Jun 2024 16:03:05 -0500 David Lechner wrote: > This makes use of the new devm_regulator_get_enable_read_voltage() > function to reduce boilerplate code. > > Error messages have changed slightly since there are now fewer places > where we print an error. The rest of the logic of selecting which > supply to use as the reference voltage remains the same. > > Also 1000 is replaced by MILLI in a few places for consistency. > > Signed-off-by: David Lechner Complicated bit of code, but seems correct. However, it crossed with Alisa-Dariana switching adding a struct device *dev = &spi->dev to probe() that I picked up earlier today. I could unwind that but given Alisa-Dariana has a number of other patches on this driver in flight, I'd like the two of you to work out the best resolution between you. Maybe easiest option is that Alisa-Dariana sends this a first patch of the next series I should pick up. Thanks, Jonathan