summaryrefslogtreecommitdiff
path: root/io-module/mtp.c
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-10-31 11:52:14 +0200
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-10-31 11:52:39 +0200
commit02c87437da63b8f07e8f19244b69d7927586e636 (patch)
tree34d97e06db94a0322875413eab2304a77cf0701a /io-module/mtp.c
parent974fd95ac6bb3fddd75aa1103206e954be5cb055 (diff)
downloadmts-io-02c87437da63b8f07e8f19244b69d7927586e636.tar.gz
mts-io-02c87437da63b8f07e8f19244b69d7927586e636.tar.bz2
mts-io-02c87437da63b8f07e8f19244b69d7927586e636.zip
eeprom: add lora_eui 8 byte field1.4.2
Diffstat (limited to 'io-module/mtp.c')
-rw-r--r--io-module/mtp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/io-module/mtp.c b/io-module/mtp.c
index 74867e3..9e411b2 100644
--- a/io-module/mtp.c
+++ b/io-module/mtp.c
@@ -472,6 +472,9 @@ static DEVICE_ATTR_MTS(dev_attr_led_lora_gpio_mtp, "led-lora",
static DEVICE_ATTR_MTS(dev_attr_led_wifi_gpio_mtp, "led-wifi",
mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
+static DEVICE_ATTR_RO_MTS(dev_attr_lora_eui, "lora-eui",
+ mts_attr_show_product_info);
+
static struct attribute *mtp_0_0_platform_attributes[] = {
&dev_attr_vendor_id.attr,
&dev_attr_product_id.attr,
@@ -500,6 +503,8 @@ static struct attribute *mtp_0_0_platform_attributes[] = {
&dev_attr_led_lora_gpio_mtp.attr,
&dev_attr_led_wifi_gpio_mtp.attr,
+ &dev_attr_lora_eui.attr,
+
NULL,
};