Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1344697img; Tue, 19 Mar 2019 05:52:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJKwSAfSmCaRIYiShkLMzRC9jMS1+IHWO9co+jxG9Zox9e7Oz6OHOKoZTG8JK0Tjd2jpWp X-Received: by 2002:aa7:838c:: with SMTP id u12mr2242633pfm.189.1552999932853; Tue, 19 Mar 2019 05:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552999932; cv=none; d=google.com; s=arc-20160816; b=sJkIMSnc4YCFTeuKnKjcSDmijQPLM92OoL6pXS1pqbYoE7fZbPPIZltE1InTAiRnUK YRJfY9geyZpBpqlGpgRsoO/Zf2ZEjZF3O7soKloDa0uShXYLAxnVT2t0SeNtm/ivJRii oed+nfmBRcfLcaMBOOZ9hUom2y0VKX7JK4zLZA5IWLf43Znj0JMGxdoS1rXzQYzu5TQj /1uJZtM2QanuEPH+myZA92oY1vCskFToEuGQuPsGjzs/POUJrW+8uVuvT5FD9S94RXJF YbbA3/Pc8o1ldrFmaJVtJf9hvO8jbSLUqqd55dTeQzeGBjuwhNXacG4sxrr5+DJ3W+rN 4jWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=375EpcW2koL4EImylCqfPRKo6lWiuSQqa2220XHwy/c=; b=SRCBpoQcpk4CObP9gP5nJoaJbrq/umZxRUWwKxJf81Zk4p+e+ApyJbAl7OWLgvY5Yf zwp6S3W/C+OA94uMZ/zKfoju/RWGbUkiKWRqCh2dOtVAwSXRMSgWIkIIaYy2cG3H/hrs crY2bDtknJwtEVd4Vy+Sn1GHFlV/rQbm8+c48m7yTAO0qE2HIntRIJy0mWI1ld2Synzr Rb1WE3GC71MqjkWaeL8kaTpRLI+mRXcMQ9/nX0v6HvS8ioiaDWDzQEA3fHkdlqztUlyR dZ44jJ5NoA02b8p/Nom8xmLhgygfSZjb+raeFqLb3NG5vatTTF/r1BWlsWdUCzcod+Bw gKBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verge.net.au header.s=mail header.b=ojJaqxyd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si7003242pgp.494.2019.03.19.05.51.57; Tue, 19 Mar 2019 05:52:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@verge.net.au header.s=mail header.b=ojJaqxyd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727662AbfCSMtu (ORCPT + 99 others); Tue, 19 Mar 2019 08:49:50 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:47320 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfCSMtt (ORCPT ); Tue, 19 Mar 2019 08:49:49 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 690C825BEFA; Tue, 19 Mar 2019 23:49:46 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1552999786; bh=RFTQBYqWmUxW3EYPl7gvbgDBTS9WEt713FJ0/BUT5tc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ojJaqxydQUDv5oALVKmDH3rUlpbM/OLQsSH2TlwRrlJl3suvTiURfqN8/b0omUpfE Xt7/Oy9Dj6c4vSBVlSNHaD9dd6GTd2LBnPUMCRT+H+B0QgTpg317ot+4rC4mHv43eP e1AMIetaNfEjrCQKiRoIpRPlndFvhwkK6QNW8Tp4= Received: by reginn.horms.nl (Postfix, from userid 7100) id D851E940663; Tue, 19 Mar 2019 13:49:44 +0100 (CET) Date: Tue, 19 Mar 2019 13:49:44 +0100 From: Simon Horman To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Lee Jones , Mark Brown , Support Opensource , Liam Girdwood Subject: Re: [PATCH 4/6] regulator: da9063: move definitions out of a header into the driver Message-ID: <20190319124944.rdo2qzuprisdhq6h@verge.net.au> References: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> <20190318154759.21978-5-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190318154759.21978-5-wsa+renesas@sang-engineering.com> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 18, 2019 at 04:47:56PM +0100, Wolfram Sang wrote: > Those definitions are only used within the driver meanwhile, so put them > there. > > Signed-off-by: Wolfram Sang Reviewed-by: Simon Horman > --- > drivers/regulator/da9063-regulator.c | 44 +++++++++++++++++++++++++++++++- > include/linux/mfd/da9063/pdata.h | 49 ------------------------------------ > 2 files changed, 43 insertions(+), 50 deletions(-) > > diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c > index 73c85039d0cf..c05859ad63d8 100644 > --- a/drivers/regulator/da9063-regulator.c > +++ b/drivers/regulator/da9063-regulator.c > @@ -25,7 +25,6 @@ > #include > #include > #include > -#include > #include > > > @@ -34,6 +33,49 @@ > REG_FIELD(_reg, __builtin_ffs((int)_mask) - 1, \ > sizeof(unsigned int) * 8 - __builtin_clz((_mask)) - 1) > > +/* DA9063 and DA9063L regulator IDs */ > +enum { > + /* BUCKs */ > + DA9063_ID_BCORE1, > + DA9063_ID_BCORE2, > + DA9063_ID_BPRO, > + DA9063_ID_BMEM, > + DA9063_ID_BIO, > + DA9063_ID_BPERI, > + > + /* BCORE1 and BCORE2 in merged mode */ > + DA9063_ID_BCORES_MERGED, > + /* BMEM and BIO in merged mode */ > + DA9063_ID_BMEM_BIO_MERGED, > + /* When two BUCKs are merged, they cannot be reused separately */ > + > + /* LDOs on both DA9063 and DA9063L */ > + DA9063_ID_LDO3, > + DA9063_ID_LDO7, > + DA9063_ID_LDO8, > + DA9063_ID_LDO9, > + DA9063_ID_LDO11, > + > + /* DA9063-only LDOs */ > + DA9063_ID_LDO1, > + DA9063_ID_LDO2, > + DA9063_ID_LDO4, > + DA9063_ID_LDO5, > + DA9063_ID_LDO6, > + DA9063_ID_LDO10, > +}; > + > +/* Old regulator platform data */ > +struct da9063_regulator_data { > + int id; > + struct regulator_init_data *initdata; > +}; > + > +struct da9063_regulators_pdata { > + unsigned int n_regulators; > + struct da9063_regulator_data *regulator_data; > +}; > + > /* Regulator capabilities and registers description */ > struct da9063_regulator_info { > struct regulator_desc desc; > diff --git a/include/linux/mfd/da9063/pdata.h b/include/linux/mfd/da9063/pdata.h > index 50bed4f89c1a..21a2d107f0cf 100644 > --- a/include/linux/mfd/da9063/pdata.h > +++ b/include/linux/mfd/da9063/pdata.h > @@ -16,55 +16,6 @@ > #ifndef __MFD_DA9063_PDATA_H__ > #define __MFD_DA9063_PDATA_H__ > > -#include > - > -/* > - * Regulator configuration > - */ > -/* DA9063 and DA9063L regulator IDs */ > -enum { > - /* BUCKs */ > - DA9063_ID_BCORE1, > - DA9063_ID_BCORE2, > - DA9063_ID_BPRO, > - DA9063_ID_BMEM, > - DA9063_ID_BIO, > - DA9063_ID_BPERI, > - > - /* BCORE1 and BCORE2 in merged mode */ > - DA9063_ID_BCORES_MERGED, > - /* BMEM and BIO in merged mode */ > - DA9063_ID_BMEM_BIO_MERGED, > - /* When two BUCKs are merged, they cannot be reused separately */ > - > - /* LDOs on both DA9063 and DA9063L */ > - DA9063_ID_LDO3, > - DA9063_ID_LDO7, > - DA9063_ID_LDO8, > - DA9063_ID_LDO9, > - DA9063_ID_LDO11, > - > - /* DA9063-only LDOs */ > - DA9063_ID_LDO1, > - DA9063_ID_LDO2, > - DA9063_ID_LDO4, > - DA9063_ID_LDO5, > - DA9063_ID_LDO6, > - DA9063_ID_LDO10, > -}; > - > -/* Regulators platform data */ > -struct da9063_regulator_data { > - int id; > - struct regulator_init_data *initdata; > -}; > - > -struct da9063_regulators_pdata { > - unsigned n_regulators; > - struct da9063_regulator_data *regulator_data; > -}; > - > - > /* > * RGB LED configuration > */ > -- > 2.11.0 >