greybus: add LED protocol numbers

This commit is contained in:
Greg Kroah-Hartman 2014-10-20 16:02:56 +08:00
parent 2bb7eae8be
commit 42d4a22d6b
3 changed files with 3 additions and 0 deletions

View File

@ -211,6 +211,7 @@ int gb_connection_init(struct gb_connection *connection)
case GREYBUS_PROTOCOL_AP:
case GREYBUS_PROTOCOL_UART:
case GREYBUS_PROTOCOL_HID:
case GREYBUS_PROTOCOL_LED:
case GREYBUS_PROTOCOL_VENDOR:
default:
gb_connection_err(connection, "unimplemented protocol %u",

View File

@ -31,6 +31,7 @@ enum greybus_protocol {
GREYBUS_PROTOCOL_UART = 0x04,
GREYBUS_PROTOCOL_HID = 0x05,
GREYBUS_PROTOCOL_BATTERY = 0x08,
GREYBUS_PROTOCOL_LED = 0x0e,
/* ... */
GREYBUS_PROTOCOL_VENDOR = 0xff,
};

View File

@ -166,6 +166,7 @@ static gb_operation_recv_handler gb_operation_recv_handlers[] = {
[GREYBUS_PROTOCOL_UART] = NULL,
[GREYBUS_PROTOCOL_HID] = NULL,
[GREYBUS_PROTOCOL_BATTERY] = gb_operation_recv_none,
[GREYBUS_PROTOCOL_LED] = NULL,
[GREYBUS_PROTOCOL_VENDOR] = NULL,
};