gpio_acpi: Introduce separate setup_intr and teardown_intr functions.
authorImre Vadász <imre@vdsz.com>
Fri, 29 Apr 2016 20:32:09 +0000 (22:32 +0200)
committerImre Vadász <imre@vdsz.com>
Fri, 29 Apr 2016 21:07:42 +0000 (23:07 +0200)
commit0b0166b05ac205b9dc1112fe8d52a8fbe31f63fa
tree625e1196141aaa5a727081c4403c878a2457dc45
parent98ffa26eebf283710fdc90611660c4576e57e0dd
gpio_acpi: Introduce separate setup_intr and teardown_intr functions.

* This allows us to actually reserve the gpio pin before, and separately
  from actually setting up the interrupt handler.

* XXX This interface is still a bit inconvenient to use, because the
  code allows gpio_setup_intr to fail. Instead the gpio_alloc_intr
  function should be returning a cookie to use for gpio_setup_intr
  (which could obviously never fail then).
sys/bus/gpio/gpio_acpi/gpio_acpi.c
sys/bus/gpio/gpio_if.m
sys/bus/gpio/gpio_intel/gpio_cherryview.c
sys/bus/gpio/gpio_intel/gpio_intel.c
sys/bus/gpio/gpio_intel/gpio_intel_var.h