Re: [PATCH v5 10/12] gpio: Support for unified device properties interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On October 17, 2014 2:16:00 PM CEST, "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx> wrote:
>From: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>
>
>Some drivers need to deal with only firmware representation of its
>GPIOs. An example would be a GPIO button array driver where each button
>is described as a separate firmware node in device tree. Typically
>these
>child nodes do not have physical representation in the Linux device
>model.
>
>In order to help device drivers to handle such firmware child nodes we
>add dev[m]_get_named_gpiod_from_child() that takes a child firmware
>node pointer as its second argument (the first one is the parent device
>itself), finds the GPIO using whatever is the underlying firmware
>method, and requests the GPIO properly.

Could we also have a wrapper around this function without a "name" argument, using just the index?

       Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux