diff options
author | Ajay Singh <ajay.kathat@microchip.com> | 2018-07-20 15:01:38 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-24 14:52:32 +0300 |
commit | 367b955907b1123f8374025f02f579306886697e (patch) | |
tree | 4d1e28ec3c72b78432f2d3bd85f8bba7e1d7d21d /drivers/staging/wilc1000/wilc_wfi_netdevice.h | |
parent | 8dfaf8594e9754a3681af10118f5b9a8b6c40f52 (diff) | |
download | linux-367b955907b1123f8374025f02f579306886697e.tar.xz |
staging: wilc1000: use descriptor-based interface for GPIO
Now making use of descriptor-based interface instead of integer-based
interface for IRQ GPIO.
Added device tree binding reference for WILC SDIO and SPI interface
module. Also moved the code to free gpio descriptor in module remove
as the reference was fetched in probe function.
Updated the TODO file
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wfi_netdevice.h')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wfi_netdevice.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h index 74c2a17ecdca..331a9711e31d 100644 --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h @@ -7,6 +7,7 @@ #include <net/cfg80211.h> #include <net/ieee80211_radiotap.h> #include <linux/if_arp.h> +#include <linux/gpio/consumer.h> #include "host_interface.h" #include "wilc_wlan.h" @@ -121,7 +122,7 @@ struct wilc { const struct wilc_hif_func *hif_func; int io_type; int mac_status; - int gpio_irq; + struct gpio_desc *gpio_irq; bool initialized; int dev_irq_num; int close; |