greybus: update AP id service message

Rename and renumber the values for the AP ID service message
and related symbols to match the recently-updated spec.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
diff --git a/drivers/staging/greybus/ap.c b/drivers/staging/greybus/ap.c
index 8156df0..24a15e9 100644
--- a/drivers/staging/greybus/ap.c
+++ b/drivers/staging/greybus/ap.c
@@ -136,6 +136,9 @@
 	}
 
 	switch (management->management_packet_type) {
+	case SVC_MANAGEMENT_AP_ID:
+		hd->device_id = management->ap_id.device_id;
+		break;
 	case SVC_MANAGEMENT_LINK_UP:
 		module = gb_module_find(hd, management->link_up.module_id);
 		if (!module) {
@@ -152,9 +155,6 @@
 				ret, management->link_up.module_id,
 				management->link_up.interface_id);
 		break;
-	case SVC_MANAGEMENT_AP_DEVICE_ID:
-		hd->device_id = management->ap_device_id.device_id;
-		break;
 	default:
 		dev_err(hd->parent, "Unhandled UniPro management message\n");
 	}
diff --git a/drivers/staging/greybus/svc_msg.h b/drivers/staging/greybus/svc_msg.h
index d76b621..5b54512 100644
--- a/drivers/staging/greybus/svc_msg.h
+++ b/drivers/staging/greybus/svc_msg.h
@@ -56,22 +56,23 @@
 	__u8	device_id;
 };
 
-struct svc_function_ap_device_id {
+struct svc_function_ap_id {
+	__u8	module_id;
 	__u8	device_id;
 };
 
 enum svc_function_management_event {
-	SVC_MANAGEMENT_SET_ROUTE	= 0x00,
+	SVC_MANAGEMENT_AP_ID		= 0x00,
 	SVC_MANAGEMENT_LINK_UP		= 0x01,
-	SVC_MANAGEMENT_AP_DEVICE_ID	= 0x02,
+	SVC_MANAGEMENT_SET_ROUTE	= 0x02,
 };
 
 struct svc_function_unipro_management {
 	__u8	management_packet_type;	/* enum svc_function_management_event */
 	union {
-		struct svc_function_unipro_set_route	set_route;
+		struct svc_function_ap_id		ap_id;
 		struct svc_function_unipro_link_up	link_up;
-		struct svc_function_ap_device_id	ap_device_id;
+		struct svc_function_unipro_set_route	set_route;
 	};
 };