Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1344590img; Tue, 19 Mar 2019 05:52:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxi/X10R1fvn1xOhRqe/qTxXd7CYLDIbpoZ0Wu4uPcfECi7uhgjgbxv/v65rJEKqOG3ucqy X-Received: by 2002:a62:17d4:: with SMTP id 203mr1971653pfx.244.1552999921891; Tue, 19 Mar 2019 05:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552999921; cv=none; d=google.com; s=arc-20160816; b=k5ESe8UBxzVNGc4Tl6LIVnKbW9tvOWafB8wMYi7XbPmMKExQ01MZetyjxI5X3bk36t 3KM/cj7oavY2Tv9RKzc4Pp26XpEalrvnB76ziDdCCU0L9rt3mFzC7wGnV0GTPvhFZkaT eeesniR6x3eLAU0Zmin2fOv7Jgl7mBGoQ3KpJv1pToz47EotphKEHp2F5YCbYBsJINZP gtigs8ELPkjyOixoYIkn1j9EB6QkIy4/+bvDDC5vAKEnOBmvNeTEt5VtzrZSCcOrVG/5 kLCFAb3REYgKUAsX0vhGGnAjbIuZVZVtDCyv9wYKol4B8Ti2/KZ5zpCwq+tyrPPaT19w cEaA== 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=AVMVBrgphASQYEWz23aGkuv0DN1+ucJjJdttut7t9m4=; b=TnvZ4dNa6MBHjFllG15+Om9XqNFIa2RxCslRisyCGIcBVv9v0jNB6YiqwUBVedmVSv 4TwWF4x+3kk4srSzO3tcms3Xll1TmC6GmQoB2BxTM3oUSch/e5vrGnB2WwadA5SRS2F8 pMQuzg63yvwPktQQFlcqXxVARFRrHTRIPLIv7xrD9WcNqxFia4sGmrBeg/PY11tSXo+i nQ/bjW658gy7CPL4snQSmmNQ+BVUoxxJG1/3Q14aB14ymYjGbfOR239AuWJ4eTlVlCrZ AQX0NfVTs/xP10QD9uIfNKdD0aYBmrAs+GqEipOs112EX5ZpDJWIoffEJVPjWAw8RPR8 1z+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verge.net.au header.s=mail header.b=FZuRPg9A; 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 r9si10834668pgp.193.2019.03.19.05.51.46; Tue, 19 Mar 2019 05:52:01 -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=FZuRPg9A; 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 S1727618AbfCSMtf (ORCPT + 99 others); Tue, 19 Mar 2019 08:49:35 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:47307 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfCSMtf (ORCPT ); Tue, 19 Mar 2019 08:49:35 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 8E02725BEF5; Tue, 19 Mar 2019 23:49:32 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1552999772; bh=e7UzDC0OZ9gIO7vuQBiOkBMN692NaxhTH0JPmu3iNsk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FZuRPg9APf6PX+EeOD0kNrwtcUZi7h5T8NvnpgPTuuWJ2QLlTa2J65iuijPjB+TY/ /ZzI3n07v+3Ra8nYjADmHcdOf0QembTYtE8oZXzQsKkbDd8PA206UiaToi0x5KtJmr 9WXdDs9mz2BHCmHyP8yDqNHGv93NBs8g2DONmBI0= Received: by reginn.horms.nl (Postfix, from userid 7100) id 0A850940663; Tue, 19 Mar 2019 13:49:30 +0100 (CET) Date: Tue, 19 Mar 2019 13:49:30 +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 Subject: Re: [PATCH 3/6] mfd: da9063: remove platform_data support Message-ID: <20190319124930.es5gzwfaudkvvftl@verge.net.au> References: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> <20190318154759.21978-4-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190318154759.21978-4-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:55PM +0100, Wolfram Sang wrote: > There are no in-kernel users anymore, so remove this outdated interface. > > Signed-off-by: Wolfram Sang Reviewed-by: Simon Horman > --- > drivers/mfd/da9063-core.c | 20 ++------------------ > drivers/mfd/da9063-i2c.c | 1 - > drivers/mfd/da9063-irq.c | 1 - > 3 files changed, 2 insertions(+), 20 deletions(-) > > diff --git a/drivers/mfd/da9063-core.c b/drivers/mfd/da9063-core.c > index 6e4ce49b4405..65ca288b0c90 100644 > --- a/drivers/mfd/da9063-core.c > +++ b/drivers/mfd/da9063-core.c > @@ -26,7 +26,6 @@ > #include > > #include > -#include > #include > > #include > @@ -165,7 +164,6 @@ static int da9063_clear_fault_log(struct da9063 *da9063) > > int da9063_device_init(struct da9063 *da9063, unsigned int irq) > { > - struct da9063_pdata *pdata = da9063->dev->platform_data; > int model, variant_id, variant_code; > int ret; > > @@ -173,24 +171,10 @@ int da9063_device_init(struct da9063 *da9063, unsigned int irq) > if (ret < 0) > dev_err(da9063->dev, "Cannot clear fault log\n"); > > - if (pdata) { > - da9063->flags = pdata->flags; > - da9063->irq_base = pdata->irq_base; > - } else { > - da9063->flags = 0; > - da9063->irq_base = -1; > - } > + da9063->flags = 0; > + da9063->irq_base = -1; > da9063->chip_irq = irq; > > - if (pdata && pdata->init != NULL) { > - ret = pdata->init(da9063); > - if (ret != 0) { > - dev_err(da9063->dev, > - "Platform initialization failed.\n"); > - return ret; > - } > - } > - > ret = regmap_read(da9063->regmap, DA9063_REG_CHIP_ID, &model); > if (ret < 0) { > dev_err(da9063->dev, "Cannot read chip model id.\n"); > diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c > index 50a24b1921d0..5f707b100e69 100644 > --- a/drivers/mfd/da9063-i2c.c > +++ b/drivers/mfd/da9063-i2c.c > @@ -22,7 +22,6 @@ > > #include > #include > -#include > #include > > #include > diff --git a/drivers/mfd/da9063-irq.c b/drivers/mfd/da9063-irq.c > index ecc0c8ce6c58..ac02c31c5802 100644 > --- a/drivers/mfd/da9063-irq.c > +++ b/drivers/mfd/da9063-irq.c > @@ -19,7 +19,6 @@ > #include > #include > #include > -#include > > #define DA9063_REG_EVENT_A_OFFSET 0 > #define DA9063_REG_EVENT_B_OFFSET 1 > -- > 2.11.0 >