Skip to contentSkip to conversation

hid: fix typos in comments

PATCH In review Hemanth Selam 2 participants 2 messages Sep 4

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hid: fix typos in comments

Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/hid/hid-appleir.c                        | 2 +-
 drivers/hid/hid-logitech-dj.c                    | 2 +-
 drivers/hid/hid-logitech-hidpp.c                 | 4 ++--
 drivers/hid/hid-roccat-kone.c                    | 2 +-
 drivers/hid/hid-roccat-kone.h                    | 2 +-
 drivers/hid/hid-speedlink.c                      | 2 +-
 drivers/hid/intel-ish-hid/ishtp-hid-client.c     | 2 +-
 drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 2 +-
 drivers/hid/usbhid/hid-pidff.c                   | 2 +-
 9 files changed, 10 insertions(+), 10 deletions(-)
drivers/hid/hid-appleir.c +1 -1
index adaa44a858ed..649ee5d8fe1e 100644
@@ -118,7 +118,7 @@ struct appleir {
 static int get_key(int data)
 {
 	/*
-	 * The key is coded accross bits 2..9:
+	 * The key is coded across bits 2..9:
 	 *
 	 * 0x00 or 0x01 (        )	key:  0		-> KEY_RESERVED
 	 * 0x02 or 0x03 (  menu  )	key:  1		-> KEY_MENU
drivers/hid/hid-logitech-dj.c +1 -1
index 1d619d2345e1..51aaee2e29e3 100644
@@ -620,7 +620,7 @@ static const char hidpp_descriptor[] = {
  *
  * Right now, RF report types have the same report types (or report id's)
  * than the hid report created from those RF reports. In the future
- * this doesnt have to be true.
+ * this doesn't have to be true.
  *
  * For instance, RF report type 0x01 which has a size of 8 bytes, corresponds
  * to hid report id 0x01, this is standard keyboard. Same thing applies to mice
drivers/hid/hid-logitech-hidpp.c +2 -2
index 1504de32b1c8..5273a5a7e7a0 100644
@@ -110,7 +110,7 @@ MODULE_PARM_DESC(disable_tap_to_click,
  * where as most newer devices use the FAP protocol. Both protocols are
  * compatible with the underlying transport, which could be usb, Unifiying, or
  * bluetooth. The message lengths are defined by the hid vendor specific report
- * descriptor for the HIDPP_SHORT report type (total message lenth 7 bytes) and
+ * descriptor for the HIDPP_SHORT report type (total message length 7 bytes) and
  * the HIDPP_LONG report type (total message length 20 bytes)
  *
  * The RAP protocol uses both report types, whereas the FAP only uses HIDPP_LONG
@@ -3354,7 +3354,7 @@ static int m560_input_mapping(struct hid_device *hdev, struct hid_input *hi,
 /*
  * The Logitech K400 keyboard has an embedded touchpad which is seen
  * as a mouse from the OS point of view. There is a hardware shortcut to disable
- * tap-to-click but the setting is not remembered accross reset, annoying some
+ * tap-to-click but the setting is not remembered across reset, annoying some
  * users.
  *
  * We can toggle this feature from the host by using the feature 0x6010:
drivers/hid/hid-roccat-kone.c +1 -1
index 3dae9eaa0b6f..5b84435cbe8f 100644
@@ -842,7 +842,7 @@ static void kone_report_to_chrdev(struct kone_device const *kone,
 
 /*
  * Is called for keyboard- and mousepart.
- * Only mousepart gets informations about special events in its extended event
+ * Only mousepart gets information about special events in its extended event
  * structure.
  */
 static int kone_raw_event(struct hid_device *hdev, struct hid_report *report,
drivers/hid/hid-roccat-kone.h +1 -1
index 65c800e3addc..13de9f14dc1e 100644
@@ -165,7 +165,7 @@ enum kone_mouse_events {
 	/* osd events are thought to be display on screen */
 	kone_mouse_event_osd_dpi = 0xa0,
 	kone_mouse_event_osd_profile = 0xb0,
-	/* TODO clarify meaning and occurence of kone_mouse_event_calibration */
+	/* TODO clarify meaning and occurrence of kone_mouse_event_calibration */
 	kone_mouse_event_calibration = 0xc0,
 	kone_mouse_event_call_overlong_macro = 0xe0,
 	kone_mouse_event_multimedia = 0xe1,
drivers/hid/hid-speedlink.c +1 -1
index 22ee078c42c6..3196bb85ccc2 100644
@@ -44,7 +44,7 @@ static int speedlink_event(struct hid_device *hdev, struct hid_field *field,
 {
 	/* No other conditions due to usage_table. */
 
-	/* This fixes the "jumpy" cursor occuring due to invalid events sent
+	/* This fixes the "jumpy" cursor occurring due to invalid events sent
 	 * by the device. Some devices only send them with value==+256, others
 	 * don't. However, catching abs(value)>=256 is restrictive enough not
 	 * to interfere with devices that were bug-free (has been tested).
drivers/hid/intel-ish-hid/ishtp-hid-client.c +1 -1
index ec5e8afe77bd..acfe25fd8b23 100644
@@ -631,7 +631,7 @@ static int ishtp_get_report_descriptor(struct ishtp_cl *hid_ishtp_cl,
  * @hid_ishtp_cl:	ISHTP client instance
  * @reset:		true if called for init after reset
  *
- * This function complete the initializtion of the client. The summary of
+ * This function complete the initialization of the client. The summary of
  * processing:
  * - Send request to enumerate the hid clients
  *	Get the HID descriptor for each enumearated device
drivers/hid/intel-ish-hid/ishtp/client-buffers.c +1 -1
index 45ddc9a047bc..6bac76249437 100644
@@ -177,7 +177,7 @@ void ishtp_io_rb_free(struct ishtp_cl_rb *rb)
  *
  * Allocate and initialize request block
  *
- * Return: Allocted IO request block pointer
+ * Return: Allocated IO request block pointer
  */
 struct ishtp_cl_rb *ishtp_io_rb_init(struct ishtp_cl *cl)
 {
drivers/hid/usbhid/hid-pidff.c +1 -1
index 22951b7ecd17..82150a72506b 100644
@@ -20,7 +20,7 @@
 #define	PID_EFFECTS_MAX		64
 #define	PID_INFINITE		U16_MAX
 
-/* Linux Force Feedback API uses miliseconds as time unit */
+/* Linux Force Feedback API uses milliseconds as time unit */
 #define FF_TIME_EXPONENT	-3
 #define FF_INFINITE		0
 
Signature · 1 line
2.48.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Hemanth Selam

Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

Assisted-by Cursor:claude-opus-5

---
 drivers/hid/hid-appleir.c                        | 2 +- drivers/hid/hid-logitech-dj.c                    | 2 +- drivers/hid/hid-logitech-hidpp.c                 | 4 ++--

For those 3 files above:

Quoted 173 lines

 drivers/hid/hid-roccat-kone.c                    | 2 +- drivers/hid/hid-roccat-kone.h                    | 2 +- drivers/hid/hid-speedlink.c                      | 2 +- drivers/hid/intel-ish-hid/ishtp-hid-client.c     | 2 +- drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 2 +- drivers/hid/usbhid/hid-pidff.c                   | 2 +-

 9 files changed, 10 insertions(+), 10 deletions(-)
drivers/hid/hid-appleir.c +1 -1
index adaa44a858ed..649ee5d8fe1e 100644
@@ -118,7 +118,7 @@ struct appleir {
  static int get_key(int data)
  {
  	/*
-	 * The key is coded accross bits 2..9:
+	 * The key is coded across bits 2..9:
  	 *
  	 * 0x00 or 0x01 (        )	key:  0		->

KEY_RESERVED
  * 0x02 or 0x03 (  menu  ) key:  1 ->
KEY_MENU

drivers/hid/hid- renamed from drivers/hid/hid-logitech-dj.c +0 -0

logitech-dj.c
index 1d619d2345e1..51aaee2e29e3 100644

drivers/hid/hid-logitech-dj.c +1 -1
@@ -620,7 +620,7 @@ static const char hidpp_descriptor[] = {
   *
   * Right now, RF report types have the same report types (or report
 id's)
   * than the hid report created from those RF reports. In the future
- * this doesnt have to be true.
+ * this doesn't have to be true.
   *
   * For instance, RF report type 0x01 which has a size of 8 bytes,

corresponds
  * to hid report id 0x01, this is standard keyboard. Same thing applies to mice

drivers/hid/hid- renamed from drivers/hid/hid-logitech-hidpp.c +0 -0

logitech-hidpp.c
index 1504de32b1c8..5273a5a7e7a0 100644

drivers/hid/hid-logitech-hidpp.c +0 -0
@@ -110,7 +110,7 @@ MODULE_PARM_DESC(disable_tap_to_click,
   * where as most newer devices use the FAP protocol. Both protocols

are
  * compatible with the underlying transport, which could be usb, Unifiying, or
  * bluetooth. The message lengths are defined by the hid vendor specific report
- * descriptor for the HIDPP_SHORT report type (total message lenth 7 bytes) and
+ * descriptor for the HIDPP_SHORT report type (total message length 7 bytes) and
  * the HIDPP_LONG report type (total message length 20 bytes) *
  * The RAP protocol uses both report types, whereas the FAP only uses HIDPP_LONG

drivers/hid/hid-logitech-hidpp.c +0 -0
@@ -3354,7 +3354,7 @@ static int m560_input_mapping(struct hid_device
 *hdev, struct hid_input *hi,
  /*
   * The Logitech K400 keyboard has an embedded touchpad which is seen
   * as a mouse from the OS point of view. There is a hardware

shortcut to disable
- * tap-to-click but the setting is not remembered accross reset, annoying some
+ * tap-to-click but the setting is not remembered across reset, annoying some
  * users.
  *
  * We can toggle this feature from the host by using the feature 0x6010:

drivers/hid/hid-roccat- renamed from drivers/hid/hid-roccat-kone.c +0 -0

kone.c
index 3dae9eaa0b6f..5b84435cbe8f 100644

drivers/hid/hid-roccat-kone.c +0 -0
@@ -842,7 +842,7 @@ static void kone_report_to_chrdev(struct
 kone_device const *kone,


 /*
  * Is called for keyboard- and mousepart.
- * Only mousepart gets informations about special events in its extended event
+ * Only mousepart gets information about special events in its extended event
  * structure.
  */
 static int kone_raw_event(struct hid_device *hdev, struct hid_report *report,

drivers/hid/hid-roccat- renamed from drivers/hid/hid-roccat-kone.h +0 -0

kone.h
index 65c800e3addc..13de9f14dc1e 100644

drivers/hid/hid-roccat-kone.h +0 -1
@@ -165,7 +165,7 @@ enum kone_mouse_events {
  	/* osd events are thought to be display on screen */
  	kone_mouse_event_osd_dpi = 0xa0,
  	kone_mouse_event_osd_profile = 0xb0,
-	/* TODO clarify meaning and occurence of

kone_mouse_event_calibration */

drivers/hid/hid-roccat-kone.h +1 -0
+	/* TODO clarify meaning and occurrence of

kone_mouse_event_calibration */ kone_mouse_event_calibration = 0xc0, kone_mouse_event_call_overlong_macro = 0xe0, kone_mouse_event_multimedia = 0xe1,

drivers/hid/hid- renamed from drivers/hid/hid-speedlink.c +0 -0

speedlink.c
index 22ee078c42c6..3196bb85ccc2 100644

drivers/hid/hid-speedlink.c +0 -0
@@ -44,7 +44,7 @@ static int speedlink_event(struct hid_device *hdev,
 struct hid_field *field,
  {
  	/* No other conditions due to usage_table. */

drivers/hid/hid-speedlink.c +0 -1
-	/* This fixes the "jumpy" cursor occuring due to invalid

events sent

drivers/hid/hid-speedlink.c +1 -0
+	/* This fixes the "jumpy" cursor occurring due to invalid

events sent
  * by the device. Some devices only send them with value==+256, others
  * don't. However, catching abs(value)>=256 is restrictive enough not
  * to interfere with devices that were bug-free (has been tested).

drivers/hid/intel-ish-hid/ishtp-hid-client.c +0 -1
index ec5e8afe77bd..acfe25fd8b23 100644
@@ -631,7 +631,7 @@ static int ishtp_get_report_descriptor(struct
 ishtp_cl *hid_ishtp_cl,
   * @hid_ishtp_cl:	ISHTP client instance
   * @reset:		true if called for init after reset
   *
- * This function complete the initializtion of the client. The

summary of
+ * This function complete the initialization of the client. The summary of
  * processing:
  * - Send request to enumerate the hid clients
  * Get the HID descriptor for each enumearated device

drivers/hid/intel-ish-hid/ishtp/client-buffers.c +1 -1
index 45ddc9a047bc..6bac76249437 100644
@@ -177,7 +177,7 @@ void ishtp_io_rb_free(struct ishtp_cl_rb *rb)
   *
   * Allocate and initialize request block
   *
- * Return: Allocted IO request block pointer
+ * Return: Allocated IO request block pointer
   */
  struct ishtp_cl_rb *ishtp_io_rb_init(struct ishtp_cl *cl)
  {
drivers/hid/usbhid/hid- renamed from drivers/hid/usbhid/hid-pidff.c +0 -0

pidff.c
index 22951b7ecd17..82150a72506b 100644

drivers/hid/usbhid/hid-pidff.c +0 -0
@@ -20,7 +20,7 @@
  #define	PID_EFFECTS_MAX		64
  #define	PID_INFINITE		U16_MAX

drivers/hid/usbhid/hid-pidff.c +1 -1
-/* Linux Force Feedback API uses miliseconds as time unit */
+/* Linux Force Feedback API uses milliseconds as time unit */

 #define FF_TIME_EXPONENT -3
 #define FF_INFINITE 0