Commit af1471e7 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: greybus_protocols: rename NULL DME selector index

Add NULL suffix to the don't-care DME selector index.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent e9f2f688
...@@ -889,7 +889,7 @@ struct gb_svc_dme_peer_set_response { ...@@ -889,7 +889,7 @@ struct gb_svc_dme_peer_set_response {
} __packed; } __packed;
/* Attributes for peer get/set operations */ /* 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 */ /* FIXME: remove ES2 support and DME_ATTR_T_TST_SRC_INCREMENT */
#define DME_ATTR_T_TST_SRC_INCREMENT 0x4083 #define DME_ATTR_T_TST_SRC_INCREMENT 0x4083
#define DME_ATTR_ES3_INIT_STATUS 0x6101 #define DME_ATTR_ES3_INIT_STATUS 0x6101
......
...@@ -103,7 +103,7 @@ static int gb_interface_read_and_clear_init_status(struct gb_interface *intf) ...@@ -103,7 +103,7 @@ static int gb_interface_read_and_clear_init_status(struct gb_interface *intf)
attr = DME_ATTR_ES3_INIT_STATUS; attr = DME_ATTR_ES3_INIT_STATUS;
ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr, 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) if (ret)
return ret; return ret;
...@@ -144,7 +144,7 @@ static int gb_interface_read_and_clear_init_status(struct gb_interface *intf) ...@@ -144,7 +144,7 @@ static int gb_interface_read_and_clear_init_status(struct gb_interface *intf)
/* Clear the init status. */ /* Clear the init status. */
return gb_svc_dme_peer_set(hd->svc, intf->interface_id, attr, 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 */ /* interface sysfs attributes */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment