From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH v2 1/2] regulator: act8945a: add regulator driver for ACT8945A Date: Thu, 14 Jan 2016 06:19:36 +0000 Message-ID: <20160114061936.GM27358@x1> References: <1452586629-1117-1-git-send-email-wenyou.yang@atmel.com> <1452586629-1117-2-git-send-email-wenyou.yang@atmel.com> <87oacp5zl7.fsf@dell.be.48ers.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Yang, Wenyou" Cc: Peter Korsgaard , Liam Girdwood , Mark Brown , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Krzysztof Kozlowski , "devicetree@vger.kernel.org" , "Ferre, Nicolas" , "linux-kernel@vger.kernel.org" , Javier Martinez Canillas , "linux-arm-kernel@lists.infradead.org" List-Id: devicetree@vger.kernel.org On Thu, 14 Jan 2016, Yang, Wenyou wrote: > > -----Original Message----- > > From: Peter Korsgaard [mailto:jacmet@gmail.com] On Behalf Of Peter = Korsgaard > > Sent: 2016=E5=B9=B41=E6=9C=8813=E6=97=A5 22:22 > > To: Yang, Wenyou > > Cc: Liam Girdwood ; Mark Brown ; > > Rob Herring ; Pawel Moll ; = Mark > > Rutland ; Ian Campbell ; > > Kumar Gala ; Krzysztof Kozlowski > > ; devicetree@vger.kernel.org; Ferre, Nicol= as > > ; linux-kernel@vger.kernel.org; Javier Mar= tinez > > Canillas ; Lee Jones ; l= inux-arm- > > kernel@lists.infradead.org > > Subject: Re: [PATCH v2 1/2] regulator: act8945a: add regulator driv= er for > > ACT8945A > >=20 > > >>>>> "Wenyou" =3D=3D Wenyou Yang writes: > >=20 > > > This patch adds new regulator driver to support ACT8945A MFD > = chip's > > regulators. > >=20 > > > The ACT8945A has three step-down DC/DC converters and four > lo= w-dropout > > regulators. > >=20 > > > Signed-off-by: Wenyou Yang > >=20 > > Isn't the regulator part of the act8945a identical to act8865? Can'= t we just use the > > existing act8865-regulator.c driver? (E.G. support 8865 variant in = the mfd driver, > > but only register the regulator sub device?) >=20 > Yes, the regulator part of the act8945a is identical to act8865. >=20 > But the act8865-regulator driver is a struct i2c_driver, and the mfd= sub-device driver is a platform_driver driver, it is not easy to use i= t. Take a look at some existing files with the pattern drivers/mfd/*{spi,i2c,core}.c to see how this might be possible. --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog