From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [RFC] gpiolib: introduce descriptor-based GPIO interface Date: Mon, 10 Dec 2012 22:34:25 +0000 Message-ID: <20121210223425.DC2783E0796@localhost> References: <1354779918-4028-1-git-send-email-acourbot@nvidia.com> <1354779918-4028-2-git-send-email-acourbot@nvidia.com> <20121206144259.136693E0950@localhost> <1985305.LiOKDTFPq4@percival> Return-path: Received: from mail-wg0-f46.google.com ([74.125.82.46]:33705 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752056Ab2LJWi1 (ORCPT ); Mon, 10 Dec 2012 17:38:27 -0500 Received: by mail-wg0-f46.google.com with SMTP id dr13so2063352wgb.1 for ; Mon, 10 Dec 2012 14:38:26 -0800 (PST) In-Reply-To: <1985305.LiOKDTFPq4@percival> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Alex Courbot Cc: Linus Walleij , Arnd Bergmann , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "gnurou@gmail.com" On Fri, 7 Dec 2012 11:06:34 +0900, Alex Courbot wrote: > On Thursday 06 December 2012 22:42:59 Grant Likely wrote: > > how about "gpio_chip_hwnum()" to somewhat match irqdomain convention? > > Sure, matching existing interfaces is better. "git grep hwnum" does not seem > to reveal much related to irqdomain though? irqdomain actually uses "hwirq". "hwgpio" would be a closer analog than 'hwnum'. At first I though hwgpio to be too goofy, but on further reflection it probably has the least likelyhood of getting used incorrectly. g.