Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp534628pxb; Wed, 25 Aug 2021 08:53:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8UNagQbMcxrGnev1Jz5iw/Yjct5uxfyxLC2EL8Y9k6OxBxKsJtJAE61Z/q0l+9d+B+Mv7 X-Received: by 2002:a02:a50d:: with SMTP id e13mr39889139jam.124.1629906826545; Wed, 25 Aug 2021 08:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629906826; cv=none; d=google.com; s=arc-20160816; b=ZEWTkGB31eS+fT6JmqsSt88rY5zfg47thEi/hpOz4CJbSEhdJDVIEgmn1w1IPvPtyS mEmHQumzPEE8JVrb4ZFH74WLxuOxsIPW+fPKbTc02V3MxQqzjPbUQChQCUMnJxYiaONN WkA+527R/0d5aHar58orf6kc3pWc2GViN4KuirIg9uLi8BxbidWH3C41x/829QkrMU4F 4SwhrW/2biqZswOMOWIUM29FdOsQr0r8WbTs9iV85sZFO7MUSTMV2luGluPHklzZBq7O qTUCvf3pzTlBKPOdMQUC725rdV45rPyRh223MfUd7364quQI0A2+K2oyxGGVm9kfOv22 YcIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ql8zOf6SWyHcPUHzLv8yiojTzRm97Kk+Xup2MMUoHd8=; b=Yo+hJqpxT/KGYo4ZdDIAcBhCiH32Zr7Xn/CPoJn9pL5TdjvpCo7L6t4cTuWjbalJwL l8IN2hjOvGQP2HDJAAk1D+h7dljQfA0n3w/kbCo21tC5aYMb/jD9wlSpxT0+aMm827GU 0TDqgU0XvbVRgVoRryVVCCiWSnaLykZ9vGyEUgUK9KYTnUlOS9uTAxxysjOT4hSSDRD9 a+Ox7YMvqYToVN3XYhiikYsjwu/E4uSTZmojrFWYN5CRw4iaQFHism8lXGAyOdXPN/+S dYdwOE1Y8j7w+z6pUnP02hKsH8yXJon2Mpatdl8aXBs4oFNTYJImbJHzbkTqOZetZ1V8 CLwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ALkrXQh6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si146089ils.161.2021.08.25.08.53.35; Wed, 25 Aug 2021 08:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ALkrXQh6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241781AbhHYOmr (ORCPT + 99 others); Wed, 25 Aug 2021 10:42:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:52168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbhHYOmr (ORCPT ); Wed, 25 Aug 2021 10:42:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D225E610CE; Wed, 25 Aug 2021 14:42:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629902521; bh=ql8zOf6SWyHcPUHzLv8yiojTzRm97Kk+Xup2MMUoHd8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ALkrXQh6kxQEO8lynHf/jpPmLCwpfLgxOMK1gN3YCDlxeK+H6w/5OB+rQEr6/ixPO c5/eUQTb5/+37iD6QOBG+Dmlafm3tcx/x7RmnxzDsP17jtD8XzQR50L3EvxwUDPbDh U8AiXnGlKO8CLluIVSjfndDAUU5UO63RkoJST+uJHQYk3smLIp8cwThd7WxwQP1jSm e6ADECyz5WD1WyGc0aGInv6QS0eEhBH+wfV+oHD+4HM1nYiE7AWJlcd9sh/Qf3yOaY s+u5zLHm3WziE4j5xl065f3lgmg1DJGqpIa7hZzCZzbvvFmfWJRs2MFomS/hnfqIfP Ngzz+1fFr3otg== Date: Wed, 25 Aug 2021 15:41:33 +0100 From: Mark Brown To: Laurent Pinchart Cc: Andy Shevchenko , Daniel Scally , Linux Kernel Mailing List , Platform Driver , Liam Girdwood , Hans de Goede , Mark Gross , Maximilian Luz , Kieran Bingham , sailues@pendragon.ideasonboard.com Subject: Re: [RFC PATCH v2 1/3] regulator: core: Add regulator_lookup_list Message-ID: <20210825144133.GH5186@sirena.org.uk> References: <20210824230620.1003828-1-djrscally@gmail.com> <20210824230620.1003828-2-djrscally@gmail.com> <20210825103301.GC5186@sirena.org.uk> <20210825113013.GD5186@sirena.org.uk> <20210825131139.GG5186@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Hlh2aiwFLCZwGcpw" Content-Disposition: inline In-Reply-To: X-Cookie: MY income is ALL disposable! User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Hlh2aiwFLCZwGcpw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 25, 2021 at 04:59:35PM +0300, Laurent Pinchart wrote: > From a camera sensor point of view, we want to avoid code duplication. > Having to look for regulators using OF lookups *and* platform data in > every single sensor driver is not a good solution. This means that, from > a camera sensor driver point of view, we want to call regulator_get() > (or the devm_ version) with a name, without caring about who establishes > the mapping and how the lookup is performed. I don't care much > personally if this would be implemented through swnode or a different > mechanism, as long as the implementation can be centralized. That's all orthogonal to this discussion, it's about how we configure the regulators not how clients use the regulators - as you say anything to do with how the regulator is configured should be totally transparent there. --Hlh2aiwFLCZwGcpw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmEmVp0ACgkQJNaLcl1U h9COmwf6AuRM1KNBdP2rhbsFwYapLGNLyNAdZT8vknC6v8R+9H8ugllh252UUD3J 8oQiPuzB6m5ZmoSEKLYRVGRGewUPe5AV98iQBW6e1xlbnsOkARxBxyi7NonnqtUC X+pg5jvl63VE6WXrNlO3n4HHLr48hoc/jpCJloXAdlPASvqrkNoz0Dv3B0/kVDxZ FTcqHDCl9l99ZDk/rUI3zQnRFTJKxZWxSeQB2nePQNWmGtRUiGfhSgG1GKkyFec9 I5Lo0V8KJZDSxnCLXC5KP9VvDnwubM0ad7HM2WghAuIeaKDhVIxUAfZMSwx83dsp 4ZSZ066rqThyuwcOw/G8SwPC3B9/Og== =5Wq4 -----END PGP SIGNATURE----- --Hlh2aiwFLCZwGcpw--