greybus: greybus_protocols: rename NULL DME selector index
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 29 Mar 2016 22:56:07 +0000 (18:56 -0400)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 30 Mar 2016 21:23:19 +0000 (14:23 -0700)
Add NULL suffix to the don't-care DME selector index.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/interface.c

index 2e126e671bd67582a74196f8f67c99d7e2daad38..0a7427ef6431f5335580d9c24a4feab31008e7e5 100644 (file)
@@ -889,7 +889,7 @@ struct gb_svc_dme_peer_set_response {
 } __packed;
 
 /* Attributes for peer get/set operations */
-#define DME_ATTR_SELECTOR_INDEX                        0
+#define DME_ATTR_SELECTOR_INDEX_NULL           0
 /* FIXME: remove ES2 support and DME_ATTR_T_TST_SRC_INCREMENT */
 #define DME_ATTR_T_TST_SRC_INCREMENT           0x4083
 #define DME_ATTR_ES3_INIT_STATUS               0x6101
index 7e7bcdafa6e23c6762c07b6422e30134e8c85e24..823debb402726bb43cf150f5a7af0b5875c3815e 100644 (file)
@@ -103,7 +103,7 @@ static int gb_interface_read_and_clear_init_status(struct gb_interface *intf)
                attr = DME_ATTR_ES3_INIT_STATUS;
 
        ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr,
-                                 DME_ATTR_SELECTOR_INDEX, &value);
+                                 DME_ATTR_SELECTOR_INDEX_NULL, &value);
        if (ret)
                return ret;
 
@@ -144,7 +144,7 @@ static int gb_interface_read_and_clear_init_status(struct gb_interface *intf)
 
        /* Clear the init status. */
        return gb_svc_dme_peer_set(hd->svc, intf->interface_id, attr,
-                                  DME_ATTR_SELECTOR_INDEX, 0);
+                                  DME_ATTR_SELECTOR_INDEX_NULL, 0);
 }
 
 /* interface sysfs attributes */