From 25340fdc5c8c191ae92039d46c40a2ec54b39dae Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 28 Feb 2022 09:43:31 -0600 Subject: Move mtac-eth to modern GPIOD kernel library --- AUTHORS | 3 +-- mtac_eth.c | 28 ++++++++++++---------------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/AUTHORS b/AUTHORS index f8e3fb5..d338ebe 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,2 +1 @@ -James Maki -John Klug +Multi-Tech diff --git a/mtac_eth.c b/mtac_eth.c index efdea60..316a9e8 100644 --- a/mtac_eth.c +++ b/mtac_eth.c @@ -1,16 +1,9 @@ -#define DRIVER_VERSION "v1.1.1" +#define DRIVER_VERSION "v2.0.0" #define DRIVER_AUTHOR "Multi-Tech" #define DRIVER_DESC "MTS Ethernet Accessory Card" #define DRIVER_NAME "mtac-eth" #include -#include -#ifdef TI43X -#include -#endif -#ifdef SAM9G25 -#include -#endif #include #include #include @@ -18,27 +11,30 @@ #include #include #include +#include static struct gpio_pin gpio_pins_mtac_eth[] = { // gpio pins for Accessory Card 1 { - .name = "AP1_RESET", + .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_RESET", + .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, }, { }, }; -- cgit v1.2.3