greybus: add LED protocol numbers
authorGreg Kroah-Hartman <greg@kroah.com>
Mon, 20 Oct 2014 08:02:56 +0000 (16:02 +0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 20 Oct 2014 08:02:56 +0000 (16:02 +0800)
drivers/staging/greybus/connection.c
drivers/staging/greybus/greybus_manifest.h
drivers/staging/greybus/operation.c

index c9d524b8274b67ed840583bd9c5b98b6fe923c87..7a86c7cf3264e26673e3737ba15f8860d73493e1 100644 (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",
index 62023f8cfb098a3501f551af9e7e3ef3bda908eb..c18ee112f6df391a2710d3c3a711025e9b067be7 100644 (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,
 };
index 4639212a96da081de410e56c94bee51131e8ff54..1176c97261c9ec710003d21f4514feb55fbb687d 100644 (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,
 };