greybus: uart: fix typo in defintion
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 14 Jul 2015 01:10:18 +0000 (02:10 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 14 Jul 2015 22:59:54 +0000 (15:59 -0700)
Fixing needless redefinition of operation types in gbsim reveals this typo
GB_UART_TYPE_SET_BREAK -> GB_UART_TYPE_SEND_BREAK. This patch should be
applied in lock-step to the patch to gbsim 'gbsim/uart: remove unnecessary
redefinition of operation types' since gbsim does not contain the typo.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/uart.c

index b32d6ab2a408bc9273243dae0a9cd28cb14e127b..839f3a6c88c6f7a6f9be96034a411c3ddd8b7e82 100644 (file)
@@ -597,7 +597,7 @@ struct gb_svc_conn_destroy_request {
 #define GB_UART_TYPE_RECEIVE_DATA              0x03    /* Unsolicited data */
 #define GB_UART_TYPE_SET_LINE_CODING           0x04
 #define GB_UART_TYPE_SET_CONTROL_LINE_STATE    0x05
-#define GB_UART_TYPE_SET_BREAK                 0x06
+#define GB_UART_TYPE_SEND_BREAK                        0x06
 #define GB_UART_TYPE_SERIAL_STATE              0x07    /* Unsolicited data */
 
 /* Represents data from AP -> Module */
index 3932f8667d314317d47e644ae8af6c0e785093cb..0166c4cdb4519a3c75ddbf8f6e7e665b1eff4fab 100644 (file)
@@ -186,7 +186,7 @@ static int send_break(struct gb_tty *gb_tty, u8 state)
        }
 
        request.state = state;
-       return gb_operation_sync(gb_tty->connection, GB_UART_TYPE_SET_BREAK,
+       return gb_operation_sync(gb_tty->connection, GB_UART_TYPE_SEND_BREAK,
                                 &request, sizeof(request), NULL, 0);
 }