Input: misc - use sizeof(*pointer) instead of sizeof(type)
authorErick Archer <erick.archer@outlook.com>
Mon, 3 Jun 2024 04:26:14 +0000 (21:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 3 Jun 2024 04:32:01 +0000 (21:32 -0700)
commita0bd7adadb50471331f0ca28caf068f7fab37b64
tree694944053c06256e4974db49d6c8d659f2ad97a4
parentbb8706a41946d161222cdddd6b3de3025877c204
Input: misc - use sizeof(*pointer) instead of sizeof(type)

It is preferred to use sizeof(*pointer) instead of sizeof(type)
due to the type of the variable can change and one needs not
change the former (unlike the latter). This patch has no effect
on runtime behavior.

Signed-off-by: Erick Archer <erick.archer@outlook.com>
Link: https://lore.kernel.org/r/AS8PR02MB7237884EB989EFF55D1BEF8B8BFE2@AS8PR02MB7237.eurprd02.prod.outlook.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/88pm80x_onkey.c
drivers/input/misc/cma3000_d0x.c
drivers/input/misc/ims-pcu.c
drivers/input/misc/max8997_haptic.c
drivers/input/misc/pcap_keys.c
drivers/input/misc/powermate.c
drivers/input/misc/uinput.c
drivers/input/misc/yealink.c