Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754390Ab2BPT30 (ORCPT ); Thu, 16 Feb 2012 14:29:26 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:62348 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751800Ab2BPT3Z convert rfc822-to-8bit (ORCPT ); Thu, 16 Feb 2012 14:29:25 -0500 MIME-Version: 1.0 In-Reply-To: <8f360fc42e201ccc0ab64aa73ffe9671c9b8963f.1329396583.git.rubini@gnudd.com> References: <8f360fc42e201ccc0ab64aa73ffe9671c9b8963f.1329396583.git.rubini@gnudd.com> Date: Thu, 16 Feb 2012 20:29:24 +0100 Message-ID: Subject: Re: [PATCH V2 1/2] mfd: Add driver for STA2X11 MFD block From: Linus Walleij To: Alessandro Rubini Cc: linux-kernel@vger.kernel.org, giancarlo.asnaghi@st.com, alan@linux.intel.com, sameo@linux.intel.com, grant.likely@secretlab.ca, linus.walleij@stericsson.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 29 On Thu, Feb 16, 2012 at 2:00 PM, Alessandro Rubini wrote: > +config MFD_STA2X11 > + ? ? ? bool "STA2X11 multi function device support" > + ? ? ? depends on STA2X11 > + ? ? ? select MFD_CORE > + ? ? ? select GPIO_STA2X11 Note: this selects a non-existent driver at this point. (OK no big deal.) > +/* Give names to GPIO pins, like PXA does, taken from the manual */ > +#define GPIO0 ? ? ? ? ? ? ? ? ?0 > +#define GPIO1 ? ? ? ? ? ? ? ? ?1 > +#define GPIO2 ? ? ? ? ? ? ? ? ?2 (...) These are too general names I think. It should be clear that this is the GPIO number relative to this one controller, so I would prefix them like STA2X11_GPIO0 etc. Overall the MFD core for STA2X11 is looking pretty good! Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/