Input: cyapa - fix a few typos in comments
authorShailendra Verma <shailendra.capricorn@gmail.com>
Tue, 26 May 2015 20:44:06 +0000 (13:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 May 2015 21:16:09 +0000 (14:16 -0700)
Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa_gen5.c

index 5b611dd71e790660fa1492dab505499222390d02..afc39e799da238bf1cb08e29c7468db90e6dc528 100644 (file)
@@ -352,7 +352,7 @@ struct gen5_app_cmd_head {
        u8 parameter_data[0];  /* Parameter data variable based on cmd_code */
 } __packed;
 
-/* Applicaton get/set parameter command data structure */
+/* Application get/set parameter command data structure */
 struct gen5_app_set_parameter_data {
        u8 parameter_id;
        u8 parameter_size;
@@ -832,7 +832,7 @@ static int gen5_hid_description_header_parse(struct cyapa *cyapa, u8 *reg_data)
        int ret;
 
        /* 0x20 0x00 0xF7 is Gen5 Application HID Description Header;
-        * 0x20 0x00 0xFF is Gen5 Booloader HID Description Header.
+        * 0x20 0x00 0xFF is Gen5 Bootloader HID Description Header.
         *
         * Must read HID Description content through out,
         * otherwise Gen5 trackpad cannot response next command
@@ -1654,8 +1654,8 @@ static int cyapa_gen5_set_power_mode(struct cyapa *cyapa,
                 * that trackpad unable to report signal to wake system up
                 * in the special situation that system is in suspending, and
                 * at the same time, user touch trackpad to wake system up.
-                * This function can avoid the data to be buffured when system
-                * is suspending which may cause interrput line unable to be
+                * This function can avoid the data to be buffered when system
+                * is suspending which may cause interrupt line unable to be
                 * asserted again.
                 */
                cyapa_empty_pip_output_data(cyapa, NULL, NULL, NULL);
@@ -2546,16 +2546,11 @@ static bool cyapa_gen5_irq_cmd_handler(struct cyapa *cyapa)
                        gen5_pip->resp_sort_func(cyapa,
                                gen5_pip->irq_cmd_buf, length))) {
                        /*
-                        * Cover the Gen5 V1 firmware issue.
-                        * The issue is there is no interrut will be
-                        * asserted to notityf host to read a command
-                        * data out when always has finger touch on
-                        * trackpad during the command is issued to
-                        * trackad device.
-                        * This issue has the scenario is that,
-                        * user always has his fingers touched on
-                        * trackpad device when booting/rebooting
-                        * their chrome book.
+                        * Work around the Gen5 V1 firmware
+                        * that does not assert interrupt signalling
+                        * that command response is ready if user
+                        * keeps touching the trackpad while command
+                        * is sent to the device.
                         */
                        length = 0;
                        if (gen5_pip->resp_len)