Re: [PATCH 3/3] regulator: axp20x: simplify device access

2016-09-24 Thread Jean-Francois Moine
On Sat, 24 Sep 2016 16:29:11 +0800 Chen-Yu Tsai wrote: [snip] > > static int axp20x_regulator_probe(struct platform_device *pdev) > > { > > + struct device *dev = pdev->dev.parent; > > There are 2 struct device's in play in this function, 1 from the parent, > and

Re: [PATCH 3/3] regulator: axp20x: simplify device access

2016-09-24 Thread Jean-Francois Moine
On Sat, 24 Sep 2016 16:29:11 +0800 Chen-Yu Tsai wrote: [snip] > > static int axp20x_regulator_probe(struct platform_device *pdev) > > { > > + struct device *dev = pdev->dev.parent; > > There are 2 struct device's in play in this function, 1 from the parent, > and 1 for the

Re: [PATCH 3/3] regulator: axp20x: simplify device access

2016-09-24 Thread Chen-Yu Tsai
Hi, On Thu, Sep 22, 2016 at 2:20 AM, Jean-Francois Moine wrote: > Use the pointer to the main regulator device instead of the pointer > to the child platform device. > > Signed-off-by: Jean-Francois Moine > --- > drivers/regulator/axp20x-regulator.c | 45 >

Re: [PATCH 3/3] regulator: axp20x: simplify device access

2016-09-24 Thread Chen-Yu Tsai
Hi, On Thu, Sep 22, 2016 at 2:20 AM, Jean-Francois Moine wrote: > Use the pointer to the main regulator device instead of the pointer > to the child platform device. > > Signed-off-by: Jean-Francois Moine > --- > drivers/regulator/axp20x-regulator.c | 45 > ++--

[PATCH 3/3] regulator: axp20x: simplify device access

2016-09-23 Thread Jean-Francois Moine
Use the pointer to the main regulator device instead of the pointer to the child platform device. Signed-off-by: Jean-Francois Moine --- drivers/regulator/axp20x-regulator.c | 45 ++-- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git

[PATCH 3/3] regulator: axp20x: simplify device access

2016-09-23 Thread Jean-Francois Moine
Use the pointer to the main regulator device instead of the pointer to the child platform device. Signed-off-by: Jean-Francois Moine --- drivers/regulator/axp20x-regulator.c | 45 ++-- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git