[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1417596018.24267.62.camel@mtksdaap41>
Date: Wed, 3 Dec 2014 16:40:18 +0800
From: Flora Fu <flora.fu@...iatek.com>
To: Lee Jones <lee.jones@...aro.org>, Rob Herring <robh+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Samuel Ortiz <sameo@...ux.intel.com>,
<linux-arm-kernel@...ts.infradead.org>
CC: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Pawel Moll <pawel.moll@....com>,
Russell King <linux@....linux.org.uk>,
Grant Likely <grant.likely@...aro.org>,
Kumar Gala <galak@...eaurora.org>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
<linux-kernel@...r.kernel.org>,
Sascha Hauer <kernel@...gutronix.de>,
<srv_heupstream@...iatek.com>,
Eddie Huang <eddie.huang@...iatek.com>,
Dongdong Cheng <dongdong.cheng@...iatek.com>,
Yingjoe Chen <yingjoe.chen@...iatek.com>,
Flora Fu <flora.fu@...iatek.com>
Subject: Re: [PATCH v2 2/8] mfd: MT6397: Add support for PMIC MT6397 MFD
On Mon, 2014-12-01 at 11:47 +0000, Lee Jones wrote:
> On Fri, 28 Nov 2014, Flora Fu wrote:
>
> > + if (!mt6397)
> > + return -ENOMEM;
> > +
> > + mt6397->dev = &pdev->dev;
>
> Is this used else where? If not, I think you can remove it.
No one is used it in this patch sets but it will be used for irq
functions to get irq id or print logs for error case in the future.
Can I keep it in the patch?
>
> > + mt6397->regmap = wrp->regmap;
> > + platform_set_drvdata(pdev, mt6397);
>
> Then you can platform_set_drvdata(pdev, regmap);
>
> Although I don't see this being used either. Is it used in the child
> devices?
>
Yes, it is used to provide regmap handle for its child device. In the
patch set, regulator uses it.
Thanks,
Flora
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists