From: Greg Kroah-Hartman Date: Mon, 20 Oct 2014 08:02:56 +0000 (+0800) Subject: greybus: add LED protocol numbers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42d4a22d6b8e66f1e4d08a643429dbe5321eb458;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: add LED protocol numbers --- diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index c9d524b8274b..7a86c7cf3264 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -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", diff --git a/drivers/staging/greybus/greybus_manifest.h b/drivers/staging/greybus/greybus_manifest.h index 62023f8cfb09..c18ee112f6df 100644 --- a/drivers/staging/greybus/greybus_manifest.h +++ b/drivers/staging/greybus/greybus_manifest.h @@ -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, }; diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c index 4639212a96da..1176c97261c9 100644 --- a/drivers/staging/greybus/operation.c +++ b/drivers/staging/greybus/operation.c @@ -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, };