diff options
Diffstat (limited to 'io-module')
-rw-r--r-- | io-module/mtcdt.c (renamed from io-module/mtr2d2.c) | 8 | ||||
-rw-r--r-- | io-module/mts_io.c | 8 | ||||
-rw-r--r-- | io-module/mts_io.h | 6 |
3 files changed, 11 insertions, 11 deletions
diff --git a/io-module/mtr2d2.c b/io-module/mtcdt.c index 4876c90..02ed59d 100644 --- a/io-module/mtr2d2.c +++ b/io-module/mtcdt.c @@ -1,4 +1,4 @@ -static struct gpio_pin gpio_pins_mtr2d2_0_0[] = { +static struct gpio_pin gpio_pins_mtcdt_0_0[] = { { .name = "RADIO_RESET", .pin = { @@ -265,7 +265,7 @@ static struct gpio_pin gpio_pins_mtr2d2_0_0[] = { { }, }; -static struct attribute *mtr2d2_platform_attributes[] = { +static struct attribute *mtcdt_platform_attributes[] = { &dev_attr_vendor_id.attr, &dev_attr_product_id.attr, &dev_attr_device_id.attr, @@ -292,6 +292,6 @@ static struct attribute *mtr2d2_platform_attributes[] = { NULL, }; -static struct attribute_group mtr2d2_platform_attribute_group = { - .attrs = mtr2d2_platform_attributes +static struct attribute_group mtcdt_platform_attribute_group = { + .attrs = mtcdt_platform_attributes }; diff --git a/io-module/mts_io.c b/io-module/mts_io.c index 9058096..cd39f99 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -374,7 +374,7 @@ static DEVICE_ATTR_RO_MTS(dev_attr_eth_mac, "mac-eth", mts_attr_show_product_info); /* include per-device pins and attributes */ -#include "mtr2d2.c" +#include "mtcdt.c" static bool load_port(int port) { int port_index = port - 1; @@ -455,9 +455,9 @@ static int mts_id_eeprom_load(void) log_error("uninitialized eeprom"); return -EIO; } else { - attr_group = &mtr2d2_platform_attribute_group; - gpio_pins = gpio_pins_mtr2d2_0_0; - log_info("detected board %s", HW_VERSION_MTR2D2_0_0); + attr_group = &mtcdt_platform_attribute_group; + gpio_pins = gpio_pins_mtcdt_0_0; + log_info("detected board %s", HW_VERSION_MTCDT_0_0); } log_info("sizeof: %lu", (unsigned long) sizeof(struct mts_id_eeprom_layout)); diff --git a/io-module/mts_io.h b/io-module/mts_io.h index 3645e17..1b51cd3 100644 --- a/io-module/mts_io.h +++ b/io-module/mts_io.h @@ -43,7 +43,7 @@ struct device_attribute _dev_name = { \ #define PRODUCT_ID_MTCDP_E1_DK "MTCDP-E1-DK" #define PRODUCT_ID_MT100EOCG "MT100EOCG" #define PRODUCT_ID_MTR "MTR" -#define PRODUCT_ID_MTR2D2 "MTR2D2" +#define PRODUCT_ID_MTCDT "MTCDT" #define PRODUCT_ID_MTAC_GPIOB "MTAC-GPIOB" #define PRODUCT_ID_MTAC_MFSER "MTAC-MFSER" @@ -55,7 +55,7 @@ struct device_attribute _dev_name = { \ #define HW_VERSION_MT100EOCG_0_0 "MT100EOCG-0.0" #define HW_VERSION_MTR_0_0 "MTR-0.0" #define HW_VERSION_MTR_0_1 "MTR-0.1" -#define HW_VERSION_MTR2D2_0_0 "MTR2D2-0.0" +#define HW_VERSION_MTCDT_0_0 "MTCDT-0.0" enum { MTCDP_E1_DK_0_0, @@ -63,7 +63,7 @@ enum { MT100EOCG_0_0, MTR_0_0, MTR_0_1, - MTR2D2_0_0, + MTCDT_0_0, }; enum { |