@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
- * HID descriptor stuructures
+ * HID descriptor structures
* Copyright 2020-2021 Advanced Micro Devices, Inc.
* Authors: Nehal Bakulchandra Shah <Nehal-bakulchandra.shah@amd.com>
* Sandeep Singh <Sandeep.singh@amd.com>
@@ -429,21 +429,21 @@ const u8 comp3_report_descriptor[] = {
0x95, 1, /* HID report count(1) */
0x55, 0x0F, /* HID unit exponent(0x0F) */
0xB1, 0x02, /* HID feature (Data_Arr_Abs) */
-0x0A, 0x84, 0x14, /* Maganetic flux and change sensitivity ABS) */
+0x0A, 0x84, 0x14, /* Magnetic flux and change sensitivity ABS) */
0x15, 0, /* HID logical Min_8(0) */
0x26, 0xFF, 0xFF, /* HID logical Max_16(0xFF,0xFF) */
0x75, 16, /* HID report size(16) */
0x95, 1, /* HID report count(1) */
0x55, 0x0E, /* HID unit exponent(0x0E) */
0xB1, 0x02, /* HID feature (Data_Arr_Abs) */
-0x0A, 0x84, 0x24, /* Maganetic flux and mod change sensitivity Max) */
+0x0A, 0x84, 0x24, /* Magnetic flux and mod change sensitivity Max) */
0x16, 0x01, 0x80, /* HID logical Min_16(0x01,0x80) */
0x26, 0xFF, 0x7F, /* HID logical Max_16(0xFF,0x7F) */
0x75, 16, /* HID report size(16) */
0x95, 1, /* HID report count(1) */
0x55, 0x0F, /* HID unit exponent(0x0F) */
0xB1, 0x02, /* HID feature (Data_Arr_Abs) */
-0x0A, 0x84, 0x34, /* Maganetic flux and mod change sensitivity Min */
+0x0A, 0x84, 0x34, /* Magnetic flux and mod change sensitivity Min */
0x16, 0x01, 0x80, /* HID logical Min_16(0x01,0x80) */
0x26, 0xFF, 0x7F, /* HID logical Max_16(0xFF,0x7F) */
0x75, 16, /* HID report size(16) */
@@ -1694,7 +1694,7 @@ static int hidpp_battery_get_property(struct power_supply *psy,
val->strval = hidpp->hid_dev->uniq;
break;
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
- /* hardware reports voltage in in mV. sysfs expects uV */
+ /* hardware reports voltage in mV. sysfs expects uV */
val->intval = hidpp->battery.voltage * 1000;
break;
case POWER_SUPPLY_PROP_CHARGE_TYPE:
@@ -869,7 +869,7 @@ static int magicmouse_probe(struct hid_device *hdev,
report->size = 6;
/*
- * Some devices repond with 'invalid report id' when feature
+ * Some devices respond with 'invalid report id' when feature
* report switching it into multitouch mode is sent to it.
*
* This results in -EIO from the _raw low-level transport callback,
@@ -1071,7 +1071,7 @@ static void joycon_parse_imu_report(struct joycon_ctlr *ctlr,
* samples, so the IMU sampling rate should be avg_time_delta/3. We can
* also use this average to detect events where we have dropped a
* packet. The userspace timestamp for the samples will be adjusted
- * accordingly to prevent unwanted behvaior.
+ * accordingly to prevent unwanted behavior.
*/
if (!ctlr->imu_first_packet_received) {
ctlr->imu_timestamp_us = 0;
@@ -1,8 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
/*
* HID driver for Redragon keyboards
*
* Copyright (c) 2017 Robert Munteanu
- * SPDX-License-Identifier: GPL-2.0+
*/
/*
@@ -688,7 +688,7 @@ static int kone_init_kone_device_struct(struct usb_device *usb_dev,
* Since IGNORE_MOUSE quirk moved to hid-apple, there is no way to bind only to
* mousepart if usb_hid is compiled into the kernel and kone is compiled as
* module.
- * Secial behaviour is bound only to mousepart since only mouseevents contain
+ * Special behaviour is bound only to mousepart since only mouseevents contain
* additional notifications.
*/
static int kone_init_specials(struct hid_device *hdev)
@@ -835,7 +835,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,
@@ -368,7 +368,7 @@ static const unsigned int buzz_keymap[] = {
};
/* The Navigation controller is a partial DS3 and uses the same HID report
- * and hence the same keymap indices, however not not all axes/buttons
+ * and hence the same keymap indices, however not all axes/buttons
* are physically present. We use the same axis and button mapping as
* the DS3, which uses the Linux gamepad spec.
*/
@@ -328,7 +328,7 @@ static void process_recv(struct ishtp_cl *hid_ishtp_cl, void *recv_buf,
/**
* ish_cl_event_cb() - bus driver callback for incoming message/packet
- * @device: Pointer to the the ishtp client device for which this message
+ * @device: Pointer to the ishtp client device for which this message
* is targeted
*
* Remove the packet from the list and process the message by calling