Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752919AbYKZXey (ORCPT ); Wed, 26 Nov 2008 18:34:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753921AbYKZXeT (ORCPT ); Wed, 26 Nov 2008 18:34:19 -0500 Received: from ozlabs.org ([203.10.76.45]:42541 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752666AbYKZXeR (ORCPT ); Wed, 26 Nov 2008 18:34:17 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18733.56480.373527.669097@cargo.ozlabs.ibm.com> Date: Thu, 27 Nov 2008 10:32:48 +1100 From: Paul Mackerras To: Trent Piepho Cc: avorontsov@ru.mvista.com, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Benjamin Herrenschmidt , Grant Likely Subject: Re: [PATCH v2] of_gpio: Return GPIO flags from of_get_gpio() In-Reply-To: References: <20081030111500.GB22008@oksana.dev.rtsoft.ru> <1225418589-8545-1-git-send-email-tpiepho@freescale.com> <20081126162033.GA13397@oksana.dev.rtsoft.ru> <18733.49643.63081.163437@cargo.ozlabs.ibm.com> X-Mailer: VM 8.0.9 under Emacs 22.2.1 (i486-pc-linux-gnu) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1210 Lines: 27 Trent Piepho writes: > > Alternatively you could add a new function (called, for instance, > > of_get_gpio_flags) with the extra parameter to eliminate the need to > > change any drivers at this stage, since they all seem to pass NULL for > > the flags argument. > > But if we did this every time any exported function needs to change, think > how bloated the API would be with cruft. I don't buy the argument that we can't add one thing because if we added a hundred that would be too much. You could add of_get_gpio_flags, get that upstream, then get the driver patches upstream, then submit a patch to remove of_get_gpio. Alternatively you could make of_get_gpio a macro or inline function in of_gpio.h. If you really want to change everything in one hit you'll have to get acks + agreement for the change to go upstream via my tree from all the relevant driver maintainers first. I don't see any particular advantage to doing it that way, though. Paul. -- 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/