linux/drivers/input/keyboard
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
adc-keys.c iio: inkern: Use namespaced exports 2026-07-05 01:37:19 +01:00
adp5520-keys.c
adp5585-keys.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
adp5588-keys.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
amikbd.c
applespi_trace.h
applespi.c
applespi.h
atakbd.c
atkbd.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
bcm-keypad.c
cap11xx.c Input: cap11xx - add support for CAP1114 2026-06-22 23:19:41 -07:00
charlieplex_keypad.c Input: charlieplex_keypad - check gpiod_direction_output() return value 2026-07-24 18:18:47 -07:00
clps711x-keypad.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
cros_ec_keyb.c
cypress-sf.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
dlink-dir685-touchkeys.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
ep93xx_keypad.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
goldfish_events.c
gpio_keys_polled.c Input: gpio-keys: make legacy gpiolib optional 2026-07-24 20:12:40 +02:00
gpio_keys.c Input: gpio-keys: make legacy gpiolib optional 2026-07-24 20:12:40 +02:00
hil_kbd.c
hilkbd.c
imx_keypad.c Input: imx_keypad - fix spelling mistake "Colums" -> "Columns" 2026-04-19 17:55:20 -07:00
imx_sc_key.c
imx-sm-bbm-key.c
ipaq-micro-keys.c Input: ipaq-micro-keys - add length check in micro_key_receive 2026-06-11 13:52:18 -07:00
iqs62x-keys.c
jornada680_kbd.c
jornada720_kbd.c
Kconfig Input: gscps2 - supply PA-RISC keyboard keymap via device property 2026-08-05 22:45:01 -07:00
lkkbd.c
lm8323.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
lm8333.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
locomokbd.c
lpc32xx-keys.c
Makefile Input: charlieplex_keypad - add GPIO charlieplex keypad 2026-04-19 18:27:01 -07:00
maple_keyb.c Input: maple_keyb - set driver data before registering input device 2026-07-02 22:50:19 -07:00
matrix_keypad.c Input: matrix_keyboard - replace linux/gpio.h inclusion 2026-07-24 20:12:48 +02:00
max7359_keypad.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
max7360-keypad.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
mpr121_touchkey.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
mt6779-keypad.c
mtk-pmic-keys.c
newtonkbd.c
nspire-keypad.c
omap-keypad.c
omap4-keypad.c
opencores-kbd.c
pinephone-keyboard.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
pmic8xxx-keypad.c Input: pmic8xxx-keypad - remove conditional return with no effect 2026-08-04 21:27:53 -07:00
pxa27x_keypad.c
qt1050.c Input: qt1050 - inline i2c_check_functionality check 2026-04-08 07:46:01 -07:00
qt1070.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
qt2160.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
samsung-keypad.c Input: samsung-keypad - use pm_runtime_active guard 2026-08-02 18:29:01 -07:00
sh_keysc.c
snvs_pwrkey.c Input: snvs_pwrkey - add press event reporting to avoid event loss during suspend 2026-07-17 09:53:55 -07:00
spear-keyboard.c
st-keyscan.c
stmpe-keypad.c
stowaway.c
sun4i-lradc-keys.c
sunkbd.c
tc3589x-keypad.c
tca8418_keypad.c Input: tca8418_keypad - enable overflow mode per datasheet (SCPS215G) 2026-07-15 13:57:14 -07:00
tegra-kbc.c
tm2-touchkey.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
twl4030_keypad.c
xtkbd.c