summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorBivash Kumar Singh <bivashraj750@gmail.com>2026-07-25 17:06:38 +0530
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-07-25 18:13:53 -0700
commitaa7ab8c6f5bffcc502d444ba3f3c510fc6f00d4f (patch)
tree09b74c222d53713eb01b87ca99ffc6e9a85f8924 /drivers/input
parent691f40e482dc853c4548cbdf4cab1aa666d20aab (diff)
downloadlinux-next-aa7ab8c6f5bffcc502d444ba3f3c510fc6f00d4f.tar.gz
linux-next-aa7ab8c6f5bffcc502d444ba3f3c510fc6f00d4f.zip
Input: elo - fix coding style issues in elo_setup_10()
Fix two checkpatch warnings in elo_setup_10(): - Add missing space around '-' operator in array index expression - Add missing 'const' qualifier to elo_types pointer array, since the array is never modified after initialization Signed-off-by: Bivash Kumar Singh <bivashraj750@gmail.com> Link: https://patch.msgid.link/20260725113638.5147-1-bivashraj750@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/elo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/elo.c b/drivers/input/touchscreen/elo.c
index 6814d5789b6f..97aeec7ef709 100644
--- a/drivers/input/touchscreen/elo.c
+++ b/drivers/input/touchscreen/elo.c
@@ -257,7 +257,7 @@ static int elo_command_10(struct elo *elo, unsigned char *packet)
static int elo_setup_10(struct elo *elo)
{
- static const char *elo_types[] = { "Accu", "Dura", "Intelli", "Carroll" };
+ static const char * const elo_types[] = { "Accu", "Dura", "Intelli", "Carroll" };
struct input_dev *dev = elo->dev;
unsigned char packet[ELO10_PACKET_LEN] = { ELO10_ID_CMD };
@@ -273,7 +273,7 @@ static int elo_setup_10(struct elo *elo)
dev_info(&elo->serio->dev,
"%sTouch touchscreen, fw: %02x.%02x, features: 0x%02x, controller: 0x%02x\n",
- elo_types[(packet[1] -'0') & 0x03],
+ elo_types[(packet[1] - '0') & 0x03],
packet[5], packet[4], packet[3], packet[7]);
return 0;