[PATCH] drivers/hid: fix brackets in comments

Manuel Ebner posted 1 patch 3 days, 3 hours ago
.../hid_descriptor/amd_sfh_hid_report_desc.h         | 12 ++++++------
drivers/hid/wacom_wac.c                              |  2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
[PATCH] drivers/hid: fix brackets in comments
Posted by Manuel Ebner 3 days, 3 hours ago
Remove multiple ')' without opening '(' and add missing '(' in comments.

Signed-off-by: Manuel Ebner <manuelebnerli@mailbox.org>
---
 .../hid_descriptor/amd_sfh_hid_report_desc.h         | 12 ++++++------
 drivers/hid/wacom_wac.c                              |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h b/drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h
index 67ec2d6a417d..6c331c2c63b8 100644
--- a/drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h
+++ b/drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h
@@ -81,7 +81,7 @@ static const u8 accel3_report_descriptor[] = {
 0x95, 1,	  /* HID report count(1) */
 0x55, 0,	  /* HID unit exponent(0) */
 0xB1, 0x02,	  /* HID feature (Data_Arr_Abs) */
-0x0A, 0x52, 0x14, /* Sensor data motion accel and mod change sensitivity ABS) */
+0x0A, 0x52, 0x14, /* Sensor data motion accel and mod change sensitivity ABS */
 
 0x15, 0,		/* HID logical Min_8(0) */
 0x26, 0xFF, 0xFF,	/* HID logical Max_16(0xFF,0xFF) */
@@ -248,7 +248,7 @@ static const u8 gyro3_report_descriptor[] = {
 0x95, 1,		/* HID report count(1) */
 0x55, 0,		/* HID unit exponent(0) */
 0xB1, 0x02,		/* HID feature (Data_Arr_Abs) */
-0x0A, 0x56, 0x14,	/* Angular velocity and mod change sensitivity ABS)*/
+0x0A, 0x56, 0x14,	/* Angular velocity and mod change sensitivity ABS*/
 
 0x15, 0,		/* HID logical Min_8(0) */
 0x26, 0xFF, 0xFF,	/* HID logical Max_16(0xFF,0xFF) */
@@ -408,7 +408,7 @@ static const u8 comp3_report_descriptor[] = {
 0x95, 1,		/* HID report count(1) */
 0x55, 0,		/* HID unit exponent(0) */
 0xB1, 0x02,		/* HID feature (Data_Arr_Abs) */
-0x0A, 0x71, 0x14,	/* Orientation  and mod change sensitivity ABS)*/
+0x0A, 0x71, 0x14,	/* Orientation  and mod 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) */
@@ -429,14 +429,14 @@ static 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,	/* Maganetic 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,	/* Maganetic 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) */
@@ -581,7 +581,7 @@ static const u8 als_report_descriptor[] = {
 0x95, 1,		/* HID report count(1) */
 0x55, 0,		/* HID unit exponent(0) */
 0xB1, 0x02,		/* HID feature (Data_Arr_Abs) */
-0x0A, 0xD1, 0xE4,	/* Light illuminance and sensitivity REL PCT) */
+0x0A, 0xD1, 0xE4,	/* Light illuminance and sensitivity REL PCT */
 0x15, 0,		/* HID logical Min_8(0) */
 0x26, 0x10, 0x27,	/* HID logical Max_16(0x10,0x27) */
 0x75, 16,		/* HID report size(16) */
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
index da1f0ea85625..b7aa6b60fb02 100644
--- a/drivers/hid/wacom_wac.c
+++ b/drivers/hid/wacom_wac.c
@@ -546,7 +546,7 @@ static int wacom_intuos_pad(struct wacom_wac *wacom)
 		 * physically implemented as a touchstrip. Each button
 		 * is approximately 3 bits wide with a 2 bit spacing.
 		 * The raw touchstrip bits are stored at:
-		 *    ((data[3] & 0x1f) << 8) | data[4])
+		 *    (((data[3] & 0x1f) << 8) | data[4])
 		 */
 		nkeys = 3;
 		keys = ((data[3] & 0x1C) ? 1<<2 : 0) |
-- 
2.54.0
Re: [PATCH] drivers/hid: fix brackets in comments
Posted by Basavaraj Natikar 1 day, 5 hours ago
On 11/21/2026 2:26 PM, Manuel Ebner wrote:
> [You don't often get email from manuelebnerli@mailbox.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Remove multiple ')' without opening '(' and add missing '(' in comments.
>
> Signed-off-by: Manuel Ebner <manuelebnerli@mailbox.org>

Reviewed-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>

Thanks,
--
Basavaraj

> ---
>   .../hid_descriptor/amd_sfh_hid_report_desc.h         | 12 ++++++------
>   drivers/hid/wacom_wac.c                              |  2 +-
>   2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h b/drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h
> index 67ec2d6a417d..6c331c2c63b8 100644
> --- a/drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h
> +++ b/drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h
> @@ -81,7 +81,7 @@ static const u8 accel3_report_descriptor[] = {
>   0x95, 1,         /* HID report count(1) */
>   0x55, 0,         /* HID unit exponent(0) */
>   0xB1, 0x02,      /* HID feature (Data_Arr_Abs) */
> -0x0A, 0x52, 0x14, /* Sensor data motion accel and mod change sensitivity ABS) */
> +0x0A, 0x52, 0x14, /* Sensor data motion accel and mod change sensitivity ABS */
>
>   0x15, 0,               /* HID logical Min_8(0) */
>   0x26, 0xFF, 0xFF,      /* HID logical Max_16(0xFF,0xFF) */
> @@ -248,7 +248,7 @@ static const u8 gyro3_report_descriptor[] = {
>   0x95, 1,               /* HID report count(1) */
>   0x55, 0,               /* HID unit exponent(0) */
>   0xB1, 0x02,            /* HID feature (Data_Arr_Abs) */
> -0x0A, 0x56, 0x14,      /* Angular velocity and mod change sensitivity ABS)*/
> +0x0A, 0x56, 0x14,      /* Angular velocity and mod change sensitivity ABS*/
>
>   0x15, 0,               /* HID logical Min_8(0) */
>   0x26, 0xFF, 0xFF,      /* HID logical Max_16(0xFF,0xFF) */
> @@ -408,7 +408,7 @@ static const u8 comp3_report_descriptor[] = {
>   0x95, 1,               /* HID report count(1) */
>   0x55, 0,               /* HID unit exponent(0) */
>   0xB1, 0x02,            /* HID feature (Data_Arr_Abs) */
> -0x0A, 0x71, 0x14,      /* Orientation  and mod change sensitivity ABS)*/
> +0x0A, 0x71, 0x14,      /* Orientation  and mod 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) */
> @@ -429,14 +429,14 @@ static 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,      /* Maganetic 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,      /* Maganetic 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) */
> @@ -581,7 +581,7 @@ static const u8 als_report_descriptor[] = {
>   0x95, 1,               /* HID report count(1) */
>   0x55, 0,               /* HID unit exponent(0) */
>   0xB1, 0x02,            /* HID feature (Data_Arr_Abs) */
> -0x0A, 0xD1, 0xE4,      /* Light illuminance and sensitivity REL PCT) */
> +0x0A, 0xD1, 0xE4,      /* Light illuminance and sensitivity REL PCT */
>   0x15, 0,               /* HID logical Min_8(0) */
>   0x26, 0x10, 0x27,      /* HID logical Max_16(0x10,0x27) */
>   0x75, 16,              /* HID report size(16) */
> diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
> index da1f0ea85625..b7aa6b60fb02 100644
> --- a/drivers/hid/wacom_wac.c
> +++ b/drivers/hid/wacom_wac.c
> @@ -546,7 +546,7 @@ static int wacom_intuos_pad(struct wacom_wac *wacom)
>                   * physically implemented as a touchstrip. Each button
>                   * is approximately 3 bits wide with a 2 bit spacing.
>                   * The raw touchstrip bits are stored at:
> -                *    ((data[3] & 0x1f) << 8) | data[4])
> +                *    (((data[3] & 0x1f) << 8) | data[4])
>                   */
>                  nkeys = 3;
>                  keys = ((data[3] & 0x1C) ? 1<<2 : 0) |
> --
> 2.54.0
>