[PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Ying-Chun Liu (PaulLiu)
From: Ying-Chun Liu (PaulLiu) paul@linaro.org Anatop is a mfd chip embedded in Freescale i.MX6Q SoC. Anatop provides regulators and thermal. This driver handles the address space and the operation of the mfd device. Signed-off-by: Ying-Chun Liu (PaulLiu) paul@linaro.org Cc: Samuel Ortiz

Re: [PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Mark Brown
On Sun, Mar 04, 2012 at 01:39:12AM +0800, Ying-Chun Liu (PaulLiu) wrote: From: Ying-Chun Liu (PaulLiu) paul@linaro.org Anatop is a mfd chip embedded in Freescale i.MX6Q SoC. Anatop provides regulators and thermal. This driver handles the address space and the operation of the mfd device.

Re: [PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Shawn Guo
On Sun, Mar 04, 2012 at 01:39:12AM +0800, Ying-Chun Liu (PaulLiu) wrote: From: Ying-Chun Liu (PaulLiu) paul@linaro.org Anatop is a mfd chip embedded in Freescale i.MX6Q SoC. Anatop provides regulators and thermal. This driver handles the address space and the operation of the mfd device.

Re: [PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Shawn Guo
On Sun, Mar 04, 2012 at 01:39:12AM +0800, Ying-Chun Liu (PaulLiu) wrote: ... +static int of_anatop_probe(struct platform_device *pdev) __devinit +{ + struct device *dev = pdev-dev; + struct device_node *np = dev-of_node; + void *ioreg; + struct anatop *drvdata; + +

Re: [PATCH v7 1/2] mfd: Add anatop mfd driver

2012-03-03 Thread Shawn Guo
Sorry, one more missing ... On Sun, Mar 04, 2012 at 01:39:12AM +0800, Ying-Chun Liu (PaulLiu) wrote: ... +static int of_anatop_probe(struct platform_device *pdev) +{ + struct device *dev = pdev-dev; + struct device_node *np = dev-of_node; + void *ioreg; + struct anatop