git: gpio_acpi: Introduce separate setup_intr and teardown_intr functions.
Imre Vadasz
ivadasz at crater.dragonflybsd.org
Fri Apr 29 15:24:18 PDT 2016
commit 0b0166b05ac205b9dc1112fe8d52a8fbe31f63fa
Author: Imre Vadász <imre at vdsz.com>
Date: Fri Apr 29 22:32:09 2016 +0200
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).
Summary of changes:
sys/bus/gpio/gpio_acpi/gpio_acpi.c | 18 +++++---
sys/bus/gpio/gpio_if.m | 22 ++++++++--
sys/bus/gpio/gpio_intel/gpio_cherryview.c | 70 ++++++++++++++++++++++++-------
sys/bus/gpio/gpio_intel/gpio_intel.c | 52 ++++++++++++++++++++---
sys/bus/gpio/gpio_intel/gpio_intel_var.h | 9 +++-
5 files changed, 141 insertions(+), 30 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0b0166b05ac205b9dc1112fe8d52a8fbe31f63fa
--
DragonFly BSD source repository
More information about the Commits
mailing list