From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751978AbcANGUA (ORCPT ); Thu, 14 Jan 2016 01:20:00 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:34387 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbcANGTl (ORCPT ); Thu, 14 Jan 2016 01:19:41 -0500 Date: Thu, 14 Jan 2016 06:19:36 +0000 From: Lee Jones 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" Subject: Re: [PATCH v2 1/2] regulator: act8945a: add regulator driver for ACT8945A 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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年1月13日 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, Nicolas > > ; linux-kernel@vger.kernel.org; Javier Martinez > > Canillas ; Lee Jones ; linux-arm- > > kernel@lists.infradead.org > > Subject: Re: [PATCH v2 1/2] regulator: act8945a: add regulator driver for > > ACT8945A > > > > >>>>> "Wenyou" == Wenyou Yang writes: > > > > > This patch adds new regulator driver to support ACT8945A MFD > chip's > > regulators. > > > > > The ACT8945A has three step-down DC/DC converters and four > low-dropout > > regulators. > > > > > Signed-off-by: Wenyou Yang > > > > 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?) > > Yes, the regulator part of the act8945a is identical to act8865. > > 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 it. Take a look at some existing files with the pattern drivers/mfd/*{spi,i2c,core}.c to see how this might be possible. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog