From mboxrd@z Thu Jan 1 00:00:00 1970 From: atull Subject: RE: [PATCH 1/4 v3] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver Date: Thu, 11 Sep 2014 10:40:58 -0500 Message-ID: References: <1410286081-16653-1-git-send-email-alvin.chen@intel.com> <1410286081-16653-2-git-send-email-alvin.chen@intel.com> <4656BEB6164FC34F8171C6538F1A595B2E98F982@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <4656BEB6164FC34F8171C6538F1A595B2E98F982@SHSMSX101.ccr.corp.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: "Chen, Alvin" Cc: Linus Walleij , Alexandre Courbot , Grant Likely , Rob Herring , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "Ong, Boon Leong" , "Kweh, Hock Leong" , Darren Hart , Sebastian Andrzej Siewior , "Westerberg, Mika" , "Shevchenko, Andriy" , Arnd Bergmann List-Id: linux-gpio@vger.kernel.org On Thu, 11 Sep 2014, Chen, Alvin wrote: > > > > > > Hi Alvin, > > > > > > I did a quick test and this looks like it works for me (with device tree). > > > I had a couple of small fixes below. > > It is very appreciated to help testing. Sure. Thanks for adding features to the driver! > > > > > > > Alan > > > > > > > > > > > - port->bgc.gc.ngpio = ngpio; > > > > - port->bgc.gc.of_node = port_np; > > > > +#ifdef CONFIG_OF_GPIO > > > > + port->bgc.gc.of_node = pp->node; > > > > +#endif > > > > > > Please use 'if (IS_ENABLED(CONFIG_OF_GPIO)) as a conditional as you do > > > elsewhere. > > OK. > > > Alan, I just do a quick test, here we can't use 'IS_ENABLED', it can't be compiled without OF_GPIO set. > Because 'gc.of_node' is not defined without 'OF_GPIO'. You can refer the structure of 'gc'. > That makes sense. Thanks, Alan