From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752738AbcHMBcd (ORCPT ); Fri, 12 Aug 2016 21:32:33 -0400 Received: from gate.crashing.org ([63.228.1.57]:41228 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752164AbcHMBcb (ORCPT ); Fri, 12 Aug 2016 21:32:31 -0400 Message-ID: <1471049894.12231.41.camel@kernel.crashing.org> Subject: Re: [PATCH 02/12] pinctrl: Add core pinctrl support for Aspeed SoCs From: Benjamin Herrenschmidt To: Linus Walleij , Andrew Jeffery Cc: Alexandre Courbot , Joel Stanley , Mark Rutland , Rob Herring , Russell King , Jeremy Kerr , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Sat, 13 Aug 2016 10:58:14 +1000 In-Reply-To: References: <1468994313-13538-1-git-send-email-andrew@aj.id.au> <1468994313-13538-3-git-send-email-andrew@aj.id.au> <1470962022.27272.68.camel@aj.id.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.4 (3.20.4-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-08-12 at 15:18 +0200, Linus Walleij wrote: > I would probably prefer that option (introduce another field) > but you should make the overall decision, it's no strong opinion > from my side. > > > Would it be acceptable to document that requirement? It might make it a bit less nasty (and easier to change later on if necessary) to use some kind of: bool ast_signal_is_gpio(...) And stick the strcmp in there. Cheers, Ben.