Skip to content

gpiolib: convert ACPI gpio helpers to gpiod_ interfaces

Mika Westerberg linux-acpi linux-gpio lkml 2 versions – In review

Get series with b4
b4 am 1381392071-21407-1-git-send-email-mika.westerberg@linux.intel.com

Versions newest first · linked by author and title

  1. v2 Latest5 patches 7 repliesIn review
  2. v15 patches 10 repliesSuperseded

Changes to the previous version from the cover letter

* Added check that pin is in range of available pins in acpi_get_gpiod()
* Dropped acpi_get_gpio()
* Added acks from Rafael and Alexandre

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5gpiolib / ACPI: move acpi_gpiochip_free_interrupts next to the request functiondrivers/gpio/gpiolib-acpi.c+38 -385 replies
2/5gpiolib / ACPI: convert to gpiod interfacesdrivers/gpio/gpiolib-acpi.c include/linux/acpi_gpio.h+43 -370 replies
3/5gpiolib / ACPI: add ACPI support for gpiod_get_index()drivers/gpio/gpiolib.c+10 -00 replies
4/5gpiolib / ACPI: allow passing GPIOF_ACTIVE_LOW for GpioInt resourcesdrivers/gpio/gpiolib-acpi.c drivers/gpio/gpiolib.c include/linux/acpi_gpio.h+15 -10 replies
5/5gpiolib / ACPI: document the GPIO descriptor based interfaceDocumentation/acpi/enumeration.txt+22 -42 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRafael J. WysockiAlexandre Courbot
1/5A-b
2/5A-b R-b
3/5A-b R-b
4/5A-b R-b
5/5A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] gpiolib: convert ACPI gpio helpers to gpiod_ interfaces

Hi,

This is an updated version of the patches that convert ACPI GPIO helpers to the new gpiod_ interfaces. The previous version can be seen here:

http://www.spinics.net/lists/linux-acpi/msg46542.html

Changes to the previous version:
* Added check that pin is in range of available pins in acpi_get_gpiod()
* Dropped acpi_get_gpio()
* Added acks from Rafael and Alexandre

We still have acpi_get_gpio(d)_by_index() exported outside of gpiolib-acpi.c but the plan is to get rid of acpi_gpio.h completely in near future.

The series is based on the latest gpiod_ patches from Alexandre Courbot and tested on Intel Haswell machine.

Mika Westerberg (5):
gpiolib / ACPI: move acpi_gpiochip_free_interrupts next to the request function gpiolib / ACPI: convert to gpiod interfaces
gpiolib / ACPI: add ACPI support for gpiod_get_index()
gpiolib / ACPI: allow passing GPIOF_ACTIVE_LOW for GpioInt resources gpiolib / ACPI: document the GPIO descriptor based interface

 Documentation/acpi/enumeration.txt |  26 ++++++--
 drivers/gpio/gpiolib-acpi.c        | 129 +++++++++++++++++++------------------
 drivers/gpio/gpiolib.c             |  20 ++++++
 include/linux/acpi_gpio.h          |  31 +++++----
 4 files changed, 127 insertions(+), 79 deletions(-)
Signature · 1 line
1.8.4.rc3