Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1344258img; Tue, 19 Mar 2019 05:51:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqypMamY5DfdHfNMynNF4+oCiE96Ij+FhhcHjXpnq1p2irqB3cwAxhnaVWgrf5C0UZE9WSYS X-Received: by 2002:a62:1385:: with SMTP id 5mr253569pft.221.1552999895335; Tue, 19 Mar 2019 05:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552999895; cv=none; d=google.com; s=arc-20160816; b=z+3sSZAaoFjk/Yq/8Q0iSXbf4nNg784uLWYeCGy1rprZ2ehO+g0VaGa84WXIMGlGr7 iSGEhJzhw4WhLscMN4wrtj9uWkZHBpm0KJhd6txS5jfsczGmsmDUMtg0wSbGe2ZXaK0d rFTPUZouYLQCun7SsTGbKMFlCq26wbWAUq74YMkDShG8j6IsnP9Qao0H7UHhr/PPIUp8 +M1EoC4YV3XKeZsn40YaLg1y9xest7ryIq8W8Y+oWROB9ouMlFBU7zXcsA2CLih5SLPi NQnQW3x01vp+H2QLZztN1Drtz8jUPcvIOI6BDiOYmUGOvYeahhmR9ZmLEmOU3sAdclNq V73Q== 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=fWtnTngaK8p7TikhvEKnJ3WyrAz0RWee9dRLB1qlQaY=; b=ijhT48Sb/5IKR+DkE4W70hNUByuXAuCX4v12exdUpxOUznEvJu7Cf8WBw6cNiOznp2 4BSImASOyKGgwJMaVFiQznD1k9l1nYoIPCRIwQ/uiVralvvi78vmhod4Gba4lS5TncZw aZXMar6T/lEBuS2zjwjO01uz4gdG51bDkX3ftELQ/rJLDS6rB4J0ZI9IpbB5jcnqx+4S 4XEl39VCyODJSDZKo3CMfNmGk5EAmB83IQBDt98JPaprVTyznwVDl6CWgL002nY/Zycp MFa875JudbJ3fhmXhu4VUYw23qZrz8/fUyBf6v7ydnjODi/DA/3m6/zkGCfP7dihRBSf PRKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verge.net.au header.s=mail header.b=FpWGh1nI; 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 m9si11091000pgr.218.2019.03.19.05.51.19; Tue, 19 Mar 2019 05:51:35 -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=FpWGh1nI; 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 S1727699AbfCSMuI (ORCPT + 99 others); Tue, 19 Mar 2019 08:50:08 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:47345 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfCSMuI (ORCPT ); Tue, 19 Mar 2019 08:50:08 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 14BF725BE0A; Tue, 19 Mar 2019 23:50:06 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1552999806; bh=Trn5wbqGz4FJIxPnNY0CKGbjouA+Sz4+3WION/EDIXk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FpWGh1nIheR/+y7Ct1T09r0UT+yosoHaLu+JoHkQODhT610bx9g3tDy+bFcG2ryhl pP88InG3iMod6WGkpfjqT3ZBQv9gmu05xzlFoLIoc8TmA5FzmvPxai44zxgX3F8dGM +TL0H4UJg0HVJUc4QIgl/18Arab/mWTAtKw7//uk= Received: by reginn.horms.nl (Postfix, from userid 7100) id 85CDB940663; Tue, 19 Mar 2019 13:50:04 +0100 (CET) Date: Tue, 19 Mar 2019 13:50:04 +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 6/6] regulator: da9063: platform_data is gone, depend on OF Message-ID: <20190319125004.bpx3jcxqiajeupiy@verge.net.au> References: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> <20190318154759.21978-7-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190318154759.21978-7-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:58PM +0100, Wolfram Sang wrote: > With OF being the only configuration possibility left, depend on it to > simplify some code. > > Signed-off-by: Wolfram Sang Reviewed-by: Simon Horman > --- > drivers/regulator/Kconfig | 2 +- > drivers/regulator/da9063-regulator.c | 10 ---------- > 2 files changed, 1 insertion(+), 11 deletions(-) > > diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig > index b7f249ee5e68..6663cd6cb96c 100644 > --- a/drivers/regulator/Kconfig > +++ b/drivers/regulator/Kconfig > @@ -256,7 +256,7 @@ config REGULATOR_DA9062 > > config REGULATOR_DA9063 > tristate "Dialog Semiconductor DA9063 regulators" > - depends on MFD_DA9063 > + depends on MFD_DA9063 && OF > help > Say y here to support the BUCKs and LDOs regulators found on > DA9063 PMICs. > diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c > index c05859ad63d8..2eda8d985756 100644 > --- a/drivers/regulator/da9063-regulator.c > +++ b/drivers/regulator/da9063-regulator.c > @@ -681,7 +681,6 @@ static const struct regulator_init_data *da9063_get_regulator_initdata( > return NULL; > } > > -#ifdef CONFIG_OF > static struct of_regulator_match da9063_matches[] = { > [DA9063_ID_BCORE1] = { .name = "bcore1" }, > [DA9063_ID_BCORE2] = { .name = "bcore2" }, > @@ -759,15 +758,6 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt( > *da9063_reg_matches = da9063_matches; > return pdata; > } > -#else > -static struct da9063_regulators_pdata *da9063_parse_regulators_dt( > - struct platform_device *pdev, > - struct of_regulator_match **da9063_reg_matches) > -{ > - *da9063_reg_matches = NULL; > - return ERR_PTR(-ENODEV); > -} > -#endif > > static int da9063_regulator_probe(struct platform_device *pdev) > { > -- > 2.11.0 >