]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: Random spell fixes
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 21 Nov 2014 05:56:30 +0000 (11:26 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 21 Nov 2014 20:25:57 +0000 (12:25 -0800)
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/battery-gb.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/core.c
drivers/staging/greybus/es1-ap-usb.c
drivers/staging/greybus/manifest.c
drivers/staging/greybus/module.c
drivers/staging/greybus/operation.c
drivers/staging/greybus/protocol.c
drivers/staging/greybus/uart-gb.c

index 02178f53cc5bf2f576fa6febb82f3b9ea7e56c8c..13ade437d63c3a03574e4c3c4b66533c00ff607e 100644 (file)
@@ -165,7 +165,7 @@ static int get_tech(struct gb_battery *gb)
 
        /*
         * Map greybus values to power_supply values.  Hopefully these are
-        * "identical" which should allow gcc to optomize the code away to
+        * "identical" which should allow gcc to optimize the code away to
         * nothing.
         */
        technology = le32_to_cpu(tech_response.technology);
@@ -209,7 +209,7 @@ static int get_status(struct gb_battery *gb)
 
        /*
         * Map greybus values to power_supply values.  Hopefully these are
-        * "identical" which should allow gcc to optomize the code away to
+        * "identical" which should allow gcc to optimize the code away to
         * nothing.
         */
        battery_status = le16_to_cpu(status_response.battery_status);
index e190944508ea5970a5a8e0e62931ba645188e085..8cde114f5ac2160e7296a6f7bbb0233d6b190b7f 100644 (file)
@@ -37,7 +37,7 @@ struct gb_connection {
 
        u16                             op_cycle;
        struct list_head                operations;
-       struct list_head                pending;        /* awaiting reponse */
+       struct list_head                pending;        /* awaiting response */
 
        void                            *private;
 };
index 2c50dd3e2a471fbe7d971b077ee151ef04669a4c..9203ebd2db7fd9198c3991580a18e667fe7c69eb 100644 (file)
@@ -39,7 +39,7 @@ static int greybus_module_match(struct device *dev, struct device_driver *drv)
        id = gb_module_match_id(gmod, driver->id_table);
        if (id)
                return 1;
-       /* FIXME - Dyanmic ids? */
+       /* FIXME - Dynamic ids? */
        return 0;
 }
 
index 3daa6eb8dd3868994bafcd00fe5a7fff0a505a3f..bab6f259dd706cee92d9e278406728b76740022c 100644 (file)
@@ -450,7 +450,7 @@ static void cport_out_callback(struct urb *urb)
         *
         * This protocol is "needed" due to some hardware restrictions on the
         * current generation of Unipro controllers.  Think about it for a
-        * minute, this is a USB driver, talking to a Unipro bridge, impediance
+        * minute, this is a USB driver, talking to a Unipro bridge, impedance
         * mismatch is huge, yet the Unipro controller are even more
         * underpowered than this little USB controller.  We rely on the round
         * trip to keep stalls in the Unipro controllers from happening so that
index 37540350cb7506daabc78f1250038640c97d7222..28abd2ad395e914da398246df2510622c46c6ae8 100644 (file)
@@ -46,7 +46,7 @@ static void release_manifest_descriptors(void)
 
 /*
  * Validate the given descriptor.  Its reported size must fit within
- * the number of bytes reamining, and it must have a recognized
+ * the number of bytes remaining, and it must have a recognized
  * type.  Check that the reported size is at least as big as what
  * we expect to see.  (It could be bigger, perhaps for a new version
  * of the format.)
index f432bea3c8182a72fb2ac960868fa62e18ae18f0..f72e6aef4dc4db029d084c4c2e6544c42ed52a36 100644 (file)
@@ -68,7 +68,7 @@ struct device_type greybus_module_type = {
 };
 
 /*
- * A Greybus module represents a user-replacable component on an Ara
+ * A Greybus module represents a user-replicable component on an Ara
  * phone.
  *
  * Create a gb_module structure to represent a discovered module.
index 74dd48a5a489fe50d93a797fe4c96c9e58de2bd2..442046562bfbaeb6cca4eead118dbdca59eb397e 100644 (file)
@@ -146,7 +146,7 @@ static void gb_message_cancel(struct gb_message *message)
 }
 
 /*
- * An operations's response message has arrived.  If no callback was
+ * An operation's response message has arrived.  If no callback was
  * supplied it was submitted for asynchronous completion, so we notify
  * any waiters.  Otherwise we assume calling the completion is enough
  * and nobody else will be waiting.
@@ -169,7 +169,6 @@ int gb_operation_wait(struct gb_operation *operation)
        if (ret < 0)
                gb_message_cancel(operation->request);
        return ret;
-
 }
 
 static void gb_operation_request_handle(struct gb_operation *operation)
@@ -299,9 +298,8 @@ static void gb_operation_message_free(struct gb_message *message)
 }
 
 /*
- * Map an enum gb_operation_status value (which is represted in a
- * message as a single back a single byte) to an appropriate Linux
- * negative errno.
+ * Map an enum gb_operation_status value (which is represented in a
+ * message as a single byte) to an appropriate Linux negative errno.
  */
 int gb_operation_status_map(u8 status)
 {
@@ -329,7 +327,7 @@ int gb_operation_status_map(u8 status)
 
 /*
  * Create a Greybus operation to be sent over the given connection.
- * The request buffer will big enough for a payload of the given
+ * The request buffer will be big enough for a payload of the given
  * size.  Outgoing requests must specify the size of the response
  * buffer size, which must be sufficient to hold all expected
  * response data.
@@ -544,7 +542,7 @@ void gb_connection_recv_request(struct gb_connection *connection,
 /*
  * We've received data that appears to be an operation response
  * message.  Look up the operation, and record that we've received
- * its repsonse.
+ * its response.
  *
  * This is called in interrupt context, so just copy the incoming
  * data into the response buffer and handle the rest via workqueue.
index 346120f8d4e34b9eda0e7a72c5ab42ba5ea23e52..55ef387b812f69d3c17a929bbc8c8a0020629b39 100644 (file)
@@ -38,7 +38,7 @@ static struct gb_protocol *_gb_protocol_find(u8 id, u8 major, u8 minor)
        return NULL;
 }
 
-/* Returns true if protocol was succesfully registered, false otherwise */
+/* Returns true if protocol was successfully registered, false otherwise */
 bool gb_protocol_register(struct gb_protocol *protocol)
 {
        struct gb_protocol *existing;
@@ -93,7 +93,7 @@ bool gb_protocol_register(struct gb_protocol *protocol)
  * XXX Currently this fails (and reports an error to the caller) if
  * XXX the protocol is currently in use.  We may want to forcefully
  * XXX kill off a protocol and all its active users at some point.
- * XXX But I think that's better handled by quescing modules that
+ * XXX But I think that's better handled by quiescing modules that
  * XXX have users and having those users drop their reference.
  *
  * Returns true if successful, false otherwise.
index 7d7e223059a77aed400837049bfb2e00cf6379ee..48fad7b4c88654abdd8fd7620ab41c07d36571b4 100644 (file)
@@ -816,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);