Thread (22 messages) 22 messages, 4 authors, 2014-12-03

[PATCH v2 2/8] mfd: MT6397: Add support for PMIC MT6397 MFD

From: Lee Jones <hidden>
Date: 2014-12-03 09:26:28
Also in: lkml

On Wed, 03 Dec 2014, Flora Fu wrote:
On Mon, 2014-12-01 at 11:47 +0000, Lee Jones wrote:
quoted
On Fri, 28 Nov 2014, Flora Fu wrote:
quoted
quoted
+	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?
It's not uncommon for devices to do this and if you're sure it's going
to be used in the future you may as well keep it in.
quoted
quoted
+	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.
Okay.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help