Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2871287pxa; Tue, 25 Aug 2020 05:49:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOIzOX0oCqK8CL7CMFDLgSdnyiPlZawVhLeM7xrZZQOV2NFNaJYizz0aKYPDzPUaxz5ROv X-Received: by 2002:a05:6402:22ab:: with SMTP id cx11mr10406278edb.102.1598359788434; Tue, 25 Aug 2020 05:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598359788; cv=none; d=google.com; s=arc-20160816; b=Q4ZZeh/GHQYAz2P9uPthb8ylBv3X+85ec/4ZCB0d/itmTM8fx383E21MBpY9fVjWjs AlY1dP/SZgLWcL2aokwMjU2Iy5oUecwTfpXwueNpR6Y+2RvD36oHoBPjFy9843JMxk/m EMvQwc5q3Ytgi6DIsA67fc1pnQ1jh9nsAG8Gh9mcsGn3TnWzeGTeErszrYkbotVAqAYs kniFYMLuMtgdfJCxUhmZObB5Z46IyGScLsh+ewz4ipXTeDggyf8PQRtWu+y4UsTCtE+/ 0UPYmA1u7Dyyky9ACcEl2Cl4qsoa6BABm9eM/Fv+ganHDKM35nSEme98hpxKtYSFbudV //3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pGzhL2Wkwn4CWYRHvo71xJonQLd+W4D/7D6x3uOANsY=; b=udphiQx8183vDaog1D7As4uP9+rt7x2XmjgpyC+uQ/bIV6Wjd2e6XDjQW2gIrLwZga 5NiLLzR2QGToa5fZt/VXyUb8PVm/UZIyh98GFtg7DVEPVxwGqU6t/0s4wd9V9MuFc16/ +K7pXhDdHkxxsgdGny/RMPiVux4q8AvJPqaE47O/qDDtYaPKKQ/R9dW0lLEoFxG+XiwQ jAW7L9B4B24goX6A+4Q5QGpj2WAmxJ0OzKxwaRSJO3unbKuyoIDJUL/VwrvuC8z7tStK PiKDTISJWlpx869RsZMPvlEbayTN9inj3AWFuIZnfom+R5ek7Ja0W9feyWolnoUri6WQ /hSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=H+2d6Bz0; 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 k20si8720479eje.105.2020.08.25.05.49.14; Tue, 25 Aug 2020 05:49:48 -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=default header.b=H+2d6Bz0; 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 S1729891AbgHYKzv (ORCPT + 99 others); Tue, 25 Aug 2020 06:55:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:53696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728117AbgHYKzu (ORCPT ); Tue, 25 Aug 2020 06:55:50 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F25FC2068E; Tue, 25 Aug 2020 10:55:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598352949; bh=sG5sWRvSzPP9GgzIjue9lvipcy0Ffb/6EEMGfIMIqX4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H+2d6Bz0nXKJEoMURRW/D9yY4cAw4E5liHVuWIok6ae6LlFvqCwamFk+XOnGZc1Eb fQyA+rdOd7ivu99Y98A6pxrI+7+RO8V8xQZ4H6DclFp2cTZJzv0E2EmwvUyQXWQaAd WAl0JrY4s8JyiL4+qhz27TsGJNjmBEXxAMEvaOyw= Date: Tue, 25 Aug 2020 11:55:13 +0100 From: Mark Brown To: Cristian Ciocaltea Cc: Lee Jones , Rob Herring , Dmitry Torokhov , Sebastian Reichel , Liam Girdwood , Manivannan Sadhasivam , Andreas =?iso-8859-1?Q?F=E4rber?= , linux-actions@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v2 3/6] regulator: Add regulator driver for ATC260x PMICs Message-ID: <20200825105513.GE5379@sirena.org.uk> References: <8da70f0b19de17fb8edead7ff06461ae2451b0e9.1598043782.git.cristian.ciocaltea@gmail.com> <20200824110045.GA4676@sirena.org.uk> <20200824232310.GA2301286@BV030612LT> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J4XPiPrVK1ev6Sgr" Content-Disposition: inline In-Reply-To: <20200824232310.GA2301286@BV030612LT> X-Cookie: Don't get to bragging. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --J4XPiPrVK1ev6Sgr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 25, 2020 at 02:23:10AM +0300, Cristian Ciocaltea wrote: > On Mon, Aug 24, 2020 at 12:00:45PM +0100, Mark Brown wrote: > > Please write normal conditional statements to make things easier to > > read. It also looks like this would be more robustly written by just > > having separate ops for DCDCs and LDOs, this could easily break if > > another device is supported in the driver. > Sure, I can provide separate ops, but in this case we duplicate almost > all of them. If this is not acceptable, then I will just rewrite the > conditional statement. That's fine, it's just a fairly small struct that's being duplicated not code. --J4XPiPrVK1ev6Sgr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl9E7hEACgkQJNaLcl1U h9Df2wgAhaKs443tKsiDZZ8WadCi+JBgtmmpe6/05aaejbq3Nn4RXhrEDvX/T65I SNnwAjQuMoWveIJyW/e/Cw5/M9E+0pE55HJ6XG8yXvSs6nnd8XNgNwqQNIz7EC5s qRMoneTdQLpF1ehrgf8zzuvEtwTK9nQ0EfGam7Hy0kLjJgTU+cRziiXnj8sWN8Hm t6DbJYJwoS5fP1dBZ6OHeaPVW4ke8ioc5KFXkJasHPdyuMuwzsOHQ79zA4DqT9tz tBlPp+S74k8jiPPO88gr88Zyfy2THWdJgzzaJtgM4Qxne8XKlFrADDzLOohfsi7i 7MQ6Z6DdX9PLBC3CA7miaoTjus/FFQ== =ZIz+ -----END PGP SIGNATURE----- --J4XPiPrVK1ev6Sgr--