Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752150AbbDQFaP (ORCPT ); Fri, 17 Apr 2015 01:30:15 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:36805 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750900AbbDQFaH (ORCPT ); Fri, 17 Apr 2015 01:30:07 -0400 Message-ID: <553099AF.3060108@imgtec.com> Date: Fri, 17 Apr 2015 02:27:11 -0300 From: Ezequiel Garcia User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Andrew Bresticker , Linus Walleij , Alexandre Courbot , "Ralf Baechle" CC: , , , , James Hartley , James Hogan , "Damien Horsley" , Govindraj Raja , Kevin Cernekee , "Paul Bolle" Subject: Re: [PATCH V3 2/2] pinctrl: Add Pistachio SoC pin control driver References: <1428435862-14354-1-git-send-email-abrestic@chromium.org> <1428435862-14354-3-git-send-email-abrestic@chromium.org> In-Reply-To: <1428435862-14354-3-git-send-email-abrestic@chromium.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.100.200.190] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 974 Lines: 34 Hi Andrew, On 04/07/2015 04:44 PM, Andrew Bresticker wrote: [..] > +static int pistachio_gpio_register(struct pistachio_pinctrl *pctl) > +{ > + struct device_node *node = pctl->dev->of_node; > + struct pistachio_gpio_bank *bank; > + unsigned int i; > + int irq, ret = 0; > + > + for (i = 0; i < pctl->nbanks; i++) { > + char child_name[sizeof("gpioXX")]; > + struct device_node *child; The first submission used for_each_child_of_node, and I can't find any review comments explaining why you've changed it to a regular for loop. > + > + snprintf(child_name, sizeof(child_name), "gpio%d", i); This assumes the GPIO bank nodes are called gpio0, gpio1, ... and so on. Do we really want to assume that? Thanks, -- Ezequiel -- 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/