3
0
Fork 0
forked from mirrors/linux
kernel/drivers/input/touchscreen
Krzysztof Kozlowski 7ef9bdec9a Input: Use str_enable_disable-like helpers
Replace ternary (condition ? "enable" : "disable") syntax with helpers
from string_choices.h because:
1. Simple function call with one argument is easier to read.  Ternary
   operator has three arguments and with wrapping might lead to quite
   long code.
2. Is slightly shorter thus also easier to read.
3. It brings uniformity in the text - same string.
4. Allows deduping by the linker, which results in a smaller binary
   file.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250114192701.912430-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2025-01-14 13:41:41 -08:00
..
88pm860x-ts.c Input: 88pm860x - use cleanup facility for device_node 2024-10-19 21:21:41 -07:00
ad7877.c
ad7879-i2c.c Input: drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-13 15:43:19 -07:00
ad7879-spi.c
ad7879.c
ad7879.h
ads7846.c Input updates for v6.13-rc0 2024-11-25 10:31:39 -08:00
ar1021_i2c.c Input: drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-13 15:43:19 -07:00
atmel_mxt_ts.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
auo-pixcir-ts.c input: Fix typos in comments across various files 2024-09-30 07:58:33 -07:00
bcm_iproc_tsc.c input: Fix typos in comments across various files 2024-09-30 07:58:33 -07:00
bu21013_ts.c Input: drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-13 15:43:19 -07:00
bu21029_ts.c Input: drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-13 15:43:19 -07:00
chipone_icn8318.c
chipone_icn8505.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
colibri-vf50-ts.c Input: colibri-vf50-ts - make use of the helper function dev_err_probe() 2024-08-19 10:22:56 -07:00
cy8ctma140.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
cy8ctmg110_ts.c
cyttsp5.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
cyttsp_core.c Input: cyttsp - use devm_regulator_bulk_get_enable() 2024-08-05 10:48:39 -07:00
cyttsp_core.h Input: cyttsp4 - remove driver 2024-08-05 10:48:49 -07:00
cyttsp_i2c.c Input: cyttsp4 - remove driver 2024-08-05 10:48:49 -07:00
cyttsp_spi.c
da9034-ts.c
da9052_tsi.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
dynapro.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
edt-ft5x06.c Input updates for v6.13-rc0 2024-11-25 10:31:39 -08:00
eeti_ts.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
egalax_ts.c Input: Use str_enable_disable-like helpers 2025-01-14 13:41:41 -08:00
egalax_ts_serial.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
ektf2127.c Input: ektf2127 - add ektf2232 support 2024-06-22 00:58:44 -07:00
elants_i2c.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
elo.c Input: elo - use guard notation when pausing serio port 2024-10-04 00:58:16 -07:00
exc3000.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
fsl-imx25-tcq.c Input: fsl-imx25-tcq - constify struct regmap_config 2024-07-08 10:01:19 -07:00
fujitsu_ts.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
goodix.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
goodix.h
goodix_berlin.h Input: goodix-berlin - add sysfs interface for reading and writing touch IC registers 2024-07-19 14:57:17 -07:00
goodix_berlin_core.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
goodix_berlin_i2c.c Input: goodix-berlin - add sysfs interface for reading and writing touch IC registers 2024-07-19 14:57:17 -07:00
goodix_berlin_spi.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
goodix_fwupload.c
gunze.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
hampshire.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
hideep.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
himax_hx83112b.c Input: himax_hx83112b - fix incorrect size when reading product ID 2024-08-19 17:29:14 -07:00
hp680_ts_input.c
htcpen.c
hycon-hy46xx.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hynitron_cstxxx.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ili210x.c Input updates for v6.13-rc0 2024-11-25 10:31:39 -08:00
ilitek_ts_i2c.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imagis.c Input: imagis - fix warning regarding 'imagis_3038_data' being unused 2024-10-24 18:33:23 -07:00
imx6ul_tsc.c
inexio.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
ipaq-micro-ts.c
iqs5xx.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
iqs7211.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
jornada720_ts.c
Kconfig Input: hycon-hy46xx - add missing dependency on REGMAP_I2C 2024-10-03 04:44:03 -07:00
lpc32xx_ts.c
mainstone-wm97xx.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
Makefile Input: cyttsp4 - remove driver 2024-08-05 10:48:49 -07:00
max11801_ts.c Input: drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-13 15:43:19 -07:00
mc13783_ts.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
melfas_mip4.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
migor_ts.c Input: drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-13 15:43:19 -07:00
mk712.c
mms114.c Input: drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-13 15:43:19 -07:00
msg2638.c
mtouch.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
mxs-lradc-ts.c
novatek-nvt-ts.c Input updates for v6.13-rc0 2024-11-25 10:31:39 -08:00
pcap_ts.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
penmount.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
pixcir_i2c_ts.c Input updates for v6.13-rc0 2024-11-25 10:31:39 -08:00
raspberrypi-ts.c Input: raspberrypi-ts - use cleanup facility for device_node 2024-10-19 21:21:43 -07:00
raydium_i2c_ts.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
resistive-adc-touch.c
rohm_bu21023.c input: Fix typos in comments across various files 2024-09-30 07:58:33 -07:00
s6sy761.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
silead.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
sis_i2c.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
st1232.c
stmfts.c Input: drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-13 15:43:19 -07:00
stmpe-ts.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
sun4i-ts.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
sur40.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
surface3_spi.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
sx8654.c
ti_am335x_tsc.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
touchit213.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
touchright.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
touchwin.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
tps6507x-ts.c
ts4800-ts.c Input: ts4800-ts - use cleanup facility for device_node 2024-10-19 21:21:43 -07:00
tsc40.c Input: touchscreen - use sizeof(*pointer) instead of sizeof(type) 2024-06-09 14:38:38 -07:00
tsc200x-core.c Input: tsc2004/5 - use guard notation when acquiring mutexes/locks 2024-08-04 18:10:41 -07:00
tsc200x-core.h Input: tsc2004/5 - fix handling of VIO power supply 2024-08-04 18:10:40 -07:00
tsc2004.c Input: tsc2004/5 - fix handling of VIO power supply 2024-08-04 18:10:40 -07:00
tsc2005.c Input: tsc2004/5 - fix handling of VIO power supply 2024-08-04 18:10:40 -07:00
tsc2007.h
tsc2007_core.c Input: drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-13 15:43:19 -07:00
tsc2007_iio.c
usbtouchscreen.c Input: usbtouchscreen - switch to using __free() cleanup facility 2024-07-15 18:07:39 -07:00
wacom_i2c.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
wacom_w8001.c Input: wacom_w8001 - use "guard" notation when acquiring mutex 2024-06-28 15:06:29 -07:00
wdt87xx_i2c.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
wm97xx-core.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
wm831x-ts.c Input: switch back to struct platform_driver::remove() 2024-10-15 11:43:25 -07:00
wm9705.c
wm9712.c
wm9713.c
zet6223.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
zforce_ts.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
zinitix.c Input: zinitix - don't fail if linux,keycodes prop is absent 2024-10-18 16:03:04 -07:00