From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: In-Reply-To: <20071223034046.GC10699@localhost.localdomain> References: <20071221202824.GA4607@localhost.localdomain> <20071221203115.GA4633@localhost.localdomain> <20071223034046.GC10699@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: [PATCH 1/4] [POWERPC] Implement GPIO API embryo Date: Sun, 23 Dec 2007 11:00:26 +0100 To: David Gibson Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > I think part of what's happening here is due to the patch's history. That doesn't make it right though ;-) > Obviously a > driver for a particular gpio controller would generally need to assert > that the controller's #gpio-cells has the correct value for this > controller type, after which code like the above would be acceptable. Well to nitpick... _a_ correct value. But sure, if this is device- specific code, it is okay. OTOH, this really should be a helper function that each GPIO controller driver can use. Segher