summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVyacheslav Pedash <vyacheslav.pedash@globallogic.com>2022-06-29 18:11:30 +0300
committerJohn Klug <john.klug@multitech.com>2022-07-06 10:59:44 -0500
commit2108f27238c786b6d158d224e8947f30cb5ec6f3 (patch)
tree9f00e78568cd2a2951659de0c0a6d70bcc408cff
parent49fa74a5273259e28af0ae72698b1616f1365311 (diff)
downloadmtac-lora-2108f27238c786b6d158d224e8947f30cb5ec6f3.tar.gz
mtac-lora-2108f27238c786b6d158d224e8947f30cb5ec6f3.tar.bz2
mtac-lora-2108f27238c786b6d158d224e8947f30cb5ec6f3.zip
MTX-4532 Remove obsolete Atmel GPIO mappings from the mtac module
-rw-r--r--mtac_lora.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/mtac_lora.c b/mtac_lora.c
index 058d486..5f909ae 100644
--- a/mtac_lora.c
+++ b/mtac_lora.c
@@ -1,4 +1,4 @@
-#define DRIVER_VERSION "v1.1.12"
+#define DRIVER_VERSION "v1.1.13"
#define DRIVER_AUTHOR "Multi-Tech"
#define DRIVER_DESC "MTS LoRa Accessory Card"
#define DRIVER_NAME "mtac-lora"
@@ -6,12 +6,6 @@
#include <linux/types.h>
#include <linux/gpio.h>
-#ifdef TI43X
-#include <linux/ti43x_gpio.h>
-#endif
-#ifdef SAM9G25
-#include <linux/sam9g25_gpio.h>
-#endif
#include <linux/platform_device.h>
#include <linux/kmod.h>
#include <linux/bitops.h>
@@ -27,20 +21,22 @@ static struct gpio_pin gpio_pins_mtac_lora_0_0[] = {
{
.name = "AP1_NRESET",
.pin = {
- .gpio = M_AP1_NRESET,
- .flags = GPIOF_OUT_INIT_HIGH,
+ .gpio = ~0U,
+ .flags = GPIOD_OUT_HIGH,
.label = "ap1-reset",
- }
+ },
+ .do_gpio_desc = 1
},
// gpio pins for Accessory Card 2
{
.name = "AP2_NRESET",
.pin = {
- .gpio = M_AP2_NRESET,
- .flags = GPIOF_OUT_INIT_HIGH,
+ .gpio = ~0U,
+ .flags = GPIOD_OUT_HIGH,
.label = "ap2-reset",
- }
+ },
+ .do_gpio_desc = 1
},
{ },
};
@@ -172,7 +168,7 @@ static struct gpio_pin gpio_pins_mtac_lora_003_0_0[] = {
},
{
- .name = "AP1_TBD1",
+ .name = "AP1_LBTRESET",
.pin = {
.gpio = ~0U,
.flags = GPIOD_OUT_LOW,
@@ -203,7 +199,7 @@ static struct gpio_pin gpio_pins_mtac_lora_003_0_0[] = {
},
{
- .name = "AP2_TBD1",
+ .name = "AP2_LBTRESET",
.pin = {
.gpio = ~0U,
.flags = GPIOD_OUT_LOW,