diff options
author | Brandon Bayer <bbayer@multitech.com> | 2016-11-01 15:50:29 -0500 |
---|---|---|
committer | Brandon Bayer <bbayer@multitech.com> | 2016-11-01 15:50:29 -0500 |
commit | 4b5fa3b77d46aedd106312f9f14fddb1483fb0ef (patch) | |
tree | f3221c46044d2655468524529a33293eb126f3da /io-module/mts_io.c | |
parent | 02c87437da63b8f07e8f19244b69d7927586e636 (diff) | |
download | mts-io-4b5fa3b77d46aedd106312f9f14fddb1483fb0ef.tar.gz mts-io-4b5fa3b77d46aedd106312f9f14fddb1483fb0ef.tar.bz2 mts-io-4b5fa3b77d46aedd106312f9f14fddb1483fb0ef.zip |
mtcap: rename mtp to mtcap1.5.0
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r-- | io-module/mts_io.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c index 0b22592..547f099 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -47,7 +47,7 @@ #include "mts_io.h" -#define DRIVER_VERSION "v1.4.2" +#define DRIVER_VERSION "v1.5.0" #define DRIVER_AUTHOR "James Maki <jmaki@multitech.com>" #define DRIVER_DESC "MTS-IO Controller" #define DRIVER_NAME "mts-io" @@ -635,7 +635,7 @@ static DEVICE_ATTR_RO_MTS(dev_attr_eth_mac, "mac-eth", /* include per-device pins and attributes */ #include "mtcdt.c" -#include "mtp.c" +#include "mtcap.c" #if NUM_AP > 0 @@ -786,11 +786,11 @@ static int mts_id_eeprom_load() if (mts_id_eeprom[0] == 0xFF) { log_error("uninitialized eeprom"); return -EIO; - } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTP_0_0, strlen(HW_VERSION_MTP_0_0)) == 0) { - attr_group = &mtp_0_0_platform_attribute_group; - gpio_pins = gpio_pins_mtp_0_0; - mts_hw_version = MTP_0_0; - log_info("detected board %s", HW_VERSION_MTP_0_0); + } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTCAP_0_0, strlen(HW_VERSION_MTCAP_0_0)) == 0) { + attr_group = &mtcap_0_0_platform_attribute_group; + gpio_pins = gpio_pins_mtcap_0_0; + mts_hw_version = MTCAP_0_0; + log_info("detected board %s", HW_VERSION_MTCAP_0_0); } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTCDT_0_1, strlen(HW_VERSION_MTCDT_0_1)) == 0) { attr_blength = sizeof mtcdt_0_1_platform_attributes; @@ -877,7 +877,7 @@ static int mts_id_eeprom_load() } log_info("uuid: %s", (char*)buf); - if (mts_hw_version == MTP_0_0) { + if (mts_hw_version == MTCAP_0_0) { log_info("lora-eui: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X", id_eeprom.lora_eui[0], id_eeprom.lora_eui[1], |