From c8dd60db6cae0800e44e68e4c2c0c1af136414be Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Tue, 21 Jul 2015 17:44:12 +0530 Subject: [PATCH] greybus: Define device ids for AP/SVC/modules Define device-ids for AP, SVC and modules (starting id only). Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/greybus_protocols.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index fe4b2dd..0056c2a 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -52,7 +52,12 @@ #ifndef __GREYBUS_PROTOCOLS_H #define __GREYBUS_PROTOCOLS_H -/* Control Protocol */ +/* Fixed IDs for control/svc protocols */ + +/* Device ID of SVC and AP */ +#define GB_DEVICE_ID_SVC 0 +#define GB_DEVICE_ID_AP 1 +#define GB_DEVICE_ID_MODULES_START 2 /* Bundle-id and cport-id for control cport */ #define GB_CONTROL_BUNDLE_ID 0 -- 2.7.4