From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752161AbcJIPBj (ORCPT ); Sun, 9 Oct 2016 11:01:39 -0400 Received: from mga03.intel.com ([134.134.136.65]:20425 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050AbcJIPBh (ORCPT ); Sun, 9 Oct 2016 11:01:37 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,466,1473145200"; d="scan'208";a="1051447138" Date: Sun, 9 Oct 2016 18:01:27 +0300 From: Mika Westerberg To: Andy Shevchenko Cc: "Rafael J. Wysocki" , Linus Walleij , Alexandre Courbot , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 2/4] ACPI / gpio: Add support for naming GPIOs Message-ID: <20161009150127.GY30800@lahna.fi.intel.com> References: <20160929133944.158596-1-mika.westerberg@linux.intel.com> <20160929133944.158596-3-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 07, 2016 at 08:05:14PM +0300, Andy Shevchenko wrote: > On Thu, Sep 29, 2016 at 4:39 PM, Mika Westerberg > wrote: > > DT has property 'gpio-line-names' to name GPIO lines the controller has if > > present. Use this very same property in ACPI as well to provide nice names > > for the GPIOS. > > One nit below. > > > @@ -835,6 +875,9 @@ void acpi_gpiochip_add(struct gpio_chip *chip) > > return; > > } > > > > + if (!chip->names) > > + acpi_gpiochip_set_names(acpi_gpio); > > + > > I'm okay with this, though wouldn't be better to call it > unconditionally like it's done for below call and move check inside? DT does it like this. I can move the check inside the function as well. > > > acpi_gpiochip_request_regions(acpi_gpio); > > acpi_walk_dep_device_list(handle); > > } > > -- > With Best Regards, > Andy Shevchenko