[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Ve8QctOkt58tXeMpLTqeE5s_jTqjr7D46u41bXPg_NiBw@mail.gmail.com>
Date: Fri, 7 Oct 2016 20:05:14 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Mika Westerberg <mika.westerberg@...ux.intel.com>
Cc: "Rafael J. Wysocki" <rjw@...ysocki.net>,
Linus Walleij <linus.walleij@...aro.org>,
Alexandre Courbot <gnurou@...il.com>,
"linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 2/4] ACPI / gpio: Add support for naming GPIOs
On Thu, Sep 29, 2016 at 4:39 PM, Mika Westerberg
<mika.westerberg@...ux.intel.com> 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?
> acpi_gpiochip_request_regions(acpi_gpio);
> acpi_walk_dep_device_list(handle);
> }
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists