HID: Fix typo in the comment
authorYan Zhen <yanzhen@vivo.com>
Tue, 24 Sep 2024 11:50:05 +0000 (19:50 +0800)
committerJiri Kosina <jkosina@suse.com>
Tue, 8 Oct 2024 06:53:49 +0000 (08:53 +0200)
Correctly spelled comments make it easier for the reader to understand
the code.

Fix typos:
'mninum' -> 'minimum',
'destoyed' -> 'destroyed',
'thridparty' -> 'thirdparty',
'lowcase' -> 'lowercase',
'idenitifiers' -> 'identifiers',
'exeuction' -> 'execution',
'fregments' -> 'fragments',
'devides' -> 'devices'.

Signed-off-by: Yan Zhen <yanzhen@vivo.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-asus.c
drivers/hid/hid-logitech-hidpp.c
drivers/hid/hid-picolcd_fb.c
drivers/hid/hid-sensor-custom.c
drivers/hid/hid-steam.c
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
drivers/hid/intel-ish-hid/ishtp/client.c
drivers/hid/usbhid/hid-core.c

index a4b4731..506c6f3 100644 (file)
@@ -1183,7 +1183,7 @@ static const __u8 *asus_report_fixup(struct hid_device *hdev, __u8 *rdesc,
 
        if (drvdata->quirks & QUIRK_G752_KEYBOARD &&
                 *rsize == 75 && rdesc[61] == 0x15 && rdesc[62] == 0x00) {
-               /* report is missing usage mninum and maximum */
+               /* report is missing usage minimum and maximum */
                __u8 *new_rdesc;
                size_t new_size = *rsize + sizeof(asus_g752_fixed_rdesc);
 
index 0d11426..a5ae48c 100644 (file)
@@ -2522,7 +2522,7 @@ static void hidpp_ff_work_handler(struct work_struct *w)
                        /* regular effect destroyed */
                        data->effect_ids[wd->params[0]-1] = -1;
                else if (wd->effect_id >= HIDPP_FF_EFFECTID_AUTOCENTER)
-                       /* autocenter spring destoyed */
+                       /* autocenter spring destroyed */
                        data->slot_autocenter = 0;
                break;
        case HIDPP_FF_SET_GLOBAL_GAINS:
index 83e3409..f8b16a8 100644 (file)
@@ -296,7 +296,7 @@ static void picolcd_fb_destroy(struct fb_info *info)
        /* make sure no work is deferred */
        fb_deferred_io_cleanup(info);
 
-       /* No thridparty should ever unregister our framebuffer! */
+       /* No thirdparty should ever unregister our framebuffer! */
        WARN_ON(fbdata->picolcd != NULL);
 
        vfree((u8 *)info->fix.smem_start);
index 66f0675..617ae24 100644 (file)
@@ -946,7 +946,7 @@ hid_sensor_register_platform_device(struct platform_device *pdev,
 
        memcpy(real_usage, match->luid, 4);
 
-       /* usage id are all lowcase */
+       /* usage id are all lowercase */
        for (c = real_usage; *c != '\0'; c++)
                *c = tolower(*c);
 
index bf8b633..6439913 100644 (file)
@@ -253,7 +253,7 @@ enum
        ID_CONTROLLER_DECK_STATE = 9
 };
 
-/* String attribute idenitifiers */
+/* String attribute identifiers */
 enum {
        ATTRIB_STR_BOARD_SERIAL,
        ATTRIB_STR_UNIT_SERIAL,
index e157863..750bfdd 100644 (file)
@@ -793,7 +793,7 @@ static int load_fw_from_host(struct ishtp_cl_data *client_data)
        if (rv < 0)
                goto end_err_fw_release;
 
-       /* Step 3: Start ISH main firmware exeuction */
+       /* Step 3: Start ISH main firmware execution */
 
        rv = ish_fw_start(client_data);
        if (rv < 0)
index 8a7f2f6..e61b01e 100644 (file)
@@ -863,7 +863,7 @@ static void ipc_tx_send(void *prm)
                        /* Send ipc fragment */
                        ishtp_hdr.length = dev->mtu;
                        ishtp_hdr.msg_complete = 0;
-                       /* All fregments submitted to IPC queue with no callback */
+                       /* All fragments submitted to IPC queue with no callback */
                        ishtp_write_message(dev, &ishtp_hdr, pmsg);
                        cl->tx_offs += dev->mtu;
                        rem = cl_msg->send_buf.size - cl->tx_offs;
index cb687ea..956b867 100644 (file)
@@ -1100,7 +1100,7 @@ static int usbhid_start(struct hid_device *hid)
 
                interval = endpoint->bInterval;
 
-               /* Some vendors give fullspeed interval on highspeed devides */
+               /* Some vendors give fullspeed interval on highspeed devices */
                if (hid->quirks & HID_QUIRK_FULLSPEED_INTERVAL &&
                    dev->speed == USB_SPEED_HIGH) {
                        interval = fls(endpoint->bInterval*8);