mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 22:55:11 +07:00
greybus: add LED protocol numbers
This commit is contained in:
parent
2bb7eae8be
commit
42d4a22d6b
@ -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",
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user