summaryrefslogtreecommitdiff
path: root/io-module/mtcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mtcap.c')
-rw-r--r--io-module/mtcap.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/io-module/mtcap.c b/io-module/mtcap.c
index f8b7d4b..804b364 100644
--- a/io-module/mtcap.c
+++ b/io-module/mtcap.c
@@ -440,7 +440,15 @@ static struct attribute *mtcap_0_0_platform_attributes[] = {
&dev_attr_reset_monitor_intervals.attr,
&dev_attr_eth_reset_mtcap.attr,
+ &dev_attr_led_status.attr,
+ &dev_attr_led_cd_gpio.attr,
+ &dev_attr_led_lora_gpio_mtcap.attr,
+ &dev_attr_led_wifi_gpio_mtcap.attr,
+ &dev_attr_wlan_en_gpio_mtcap.attr,
+ &dev_attr_wlan_rst_gpio_mtcap.attr,
+
+ /* Set to NULL if no radio -- should be 1st radio attribute */
&dev_attr_radio_power_mtcap.attr,
&dev_attr_radio_reset_mtcap.attr,
@@ -448,16 +456,15 @@ static struct attribute *mtcap_0_0_platform_attributes[] = {
&dev_attr_radio_reset_backoff_index.attr,
&dev_attr_radio_reset_backoff_seconds.attr,
- &dev_attr_led_status.attr,
- &dev_attr_led_cd_gpio.attr,
- &dev_attr_led_lora_gpio_mtcap.attr,
- &dev_attr_led_wifi_gpio_mtcap.attr,
-
- &dev_attr_wlan_en_gpio_mtcap.attr,
- &dev_attr_wlan_rst_gpio_mtcap.attr,
NULL,
};
+static int
+is_radio_power_attr(struct attribute *attr)
+{
+ return (attr == &dev_attr_radio_power_mtcap.attr);
+}
+
static struct attribute_group mtcap_0_0_platform_attribute_group = {
.attrs = mtcap_0_0_platform_attributes
};