]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/greybus/uart-gb.c
greybus: Random spell fixes
[karo-tx-linux.git] / drivers / staging / greybus / uart-gb.c
index 1be00d654a6d22403b0e727f5d4b42742b4f8255..48fad7b4c88654abdd8fd7620ab41c07d36571b4 100644 (file)
@@ -159,6 +159,7 @@ static int get_version(struct gb_tty *tty)
                gb_connection_err(tty->connection, "result %hhu",
                        operation->result);
        } else {
+               response = operation->response->payload;
                if (response->major > GB_UART_VERSION_MAJOR) {
                        pr_err("unsupported major version (%hhu > %hhu)\n",
                                response->major, GB_UART_VERSION_MAJOR);
@@ -191,7 +192,7 @@ static int send_data(struct gb_tty *tty, u16 size, const u8 *data)
                                        sizeof(*request) + size, 0);
        if (!operation)
                return -ENOMEM;
-       request = operation->request.payload;
+       request = operation->request->payload;
        request->size = cpu_to_le16(size);
        memcpy(&request->data[0], data, size);
 
@@ -226,7 +227,7 @@ static int send_line_coding(struct gb_tty *tty,
                                        sizeof(*request), 0);
        if (!operation)
                return -ENOMEM;
-       request = operation->request.payload;
+       request = operation->request->payload;
        memcpy(&request->line_coding, line_coding, sizeof(*line_coding));
 
        /* Synchronous operation--no callback */
@@ -260,7 +261,7 @@ static int send_control(struct gb_tty *tty, u16 control)
                                        sizeof(*request), 0);
        if (!operation)
                return -ENOMEM;
-       request = operation->request.payload;
+       request = operation->request->payload;
        request->control = cpu_to_le16(control);
 
        /* Synchronous operation--no callback */
@@ -298,7 +299,7 @@ static int send_break(struct gb_tty *tty, u8 state)
                                        sizeof(*request), 0);
        if (!operation)
                return -ENOMEM;
-       request = operation->request.payload;
+       request = operation->request->payload;
        request->state = state;
 
        /* Synchronous operation--no callback */
@@ -815,7 +816,7 @@ static void gb_uart_connection_exit(struct gb_connection *connection)
 
        tty_unregister_device(gb_tty_driver, gb_tty->minor);
 
-       /* FIXME - free transmit / recieve buffers */
+       /* FIXME - free transmit / receive buffers */
 
        tty_port_put(&gb_tty->port);