linux/drivers/media/rc
Li Zhijian cc4cce95a9 media: imon: Convert sprintf/snprintf to sysfs_emit
Per filesystems/sysfs.rst, show() should only use sysfs_emit()
or sysfs_emit_at() when formatting the value to be returned to user space.

coccinelle complains that there are still a couple of functions that use
snprintf(). Convert them to sysfs_emit().

sprintf() will be converted as weel if they have.

Generally, this patch is generated by
make coccicheck M=<path/to/file> MODE=patch \
COCCI=scripts/coccinelle/api/device_attr_show.cocci

No functional change intended

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-03-25 10:13:44 +01:00
..
img-ir media: img-ir-core: Convert to platform remove callback returning void 2023-04-11 16:59:20 +02:00
keymaps media: rc: keymaps: add missing MODULE_DESCRIPTION to keymaps 2023-10-07 10:55:48 +02:00
ati_remote.c media: rc: ati_remote: increase mouse_name buffer size 2023-09-27 10:47:22 +02:00
bpf-lirc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-02-22 15:29:26 -08:00
ene_ir.c media: rc: Fix use-after-free bugs caused by ene_tx_irqsim() 2023-02-08 07:49:22 +01:00
ene_ir.h
fintek-cir.c
fintek-cir.h
gpio-ir-recv.c media: rc: gpio-ir-recv: Remove unused of_gpio.h 2024-03-25 10:13:43 +01:00
gpio-ir-tx.c media: rc: gpio-ir-tx: drop of_match_ptr for ID table 2023-07-14 12:32:27 +02:00
igorplugusb.c media: igorplugusb: use correct size pass to igorplugusb_probe() 2022-07-15 14:52:20 +01:00
iguanair.c media: iguanair: no superfluous usb_unlink_urb() 2022-06-20 10:30:33 +01:00
imon_raw.c media: imon_raw: respect DMA coherency 2022-06-20 10:30:33 +01:00
imon.c media: imon: Convert sprintf/snprintf to sysfs_emit 2024-03-25 10:13:44 +01:00
ir_toy.c media: ir_toy: fix a memleak in irtoy_tx 2024-02-01 13:49:18 +01:00
ir-hix5hd2.c media: ir-hix5hd2: Use device_get_match_data() 2023-11-16 13:56:47 +01:00
ir-imon-decoder.c
ir-jvc-decoder.c
ir-mce_kbd-decoder.c
ir-nec-decoder.c
ir-rc5-decoder.c
ir-rc6-decoder.c
ir-rcmm-decoder.c
ir-sanyo-decoder.c
ir-sharp-decoder.c media: sharp: fix sharp encoding 2023-10-11 16:26:16 +02:00
ir-sony-decoder.c
ir-spi.c media: ir-spi: Unify indentation and comment style 2024-03-25 10:13:44 +01:00
ir-xmp-decoder.c
ite-cir.c
ite-cir.h
Kconfig media: pwm-ir-tx: Depend on CONFIG_HIGH_RES_TIMERS 2024-02-01 13:49:39 +01:00
lirc_dev.c media: lirc_dev: Make lirc_class constant 2024-03-25 10:13:44 +01:00
Makefile media: rc: remove ir-rx51 in favour of generic pwm-ir-tx 2023-09-27 09:40:02 +02:00
mceusb.c media: mceusb: set timeout to at least timeout provided 2022-09-24 07:50:42 +02:00
meson-ir-tx.c media: meson-ir-tx: Drop usage of platform_driver_probe() 2023-11-16 13:56:48 +01:00
meson-ir.c media: rc: meson-ir: support rc driver type RC_DRIVER_SCANCODE 2023-09-27 09:40:02 +02:00
mtk-cir.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
nuvoton-cir.c
nuvoton-cir.h
pwm-ir-tx.c media: pwm-ir-tx: Trigger edges from hrtimer interrupt context 2023-12-20 16:12:49 +01:00
rc-core-priv.h media: rc: bpf attach/detach requires write permission 2024-02-01 13:48:57 +01:00
rc-ir-raw.c
rc-loopback.c
rc-main.c driver core: make struct device_type.uevent() take a const * 2023-01-27 13:45:36 +01:00
redrat3.c media: redrat3: no unnecessary GFP_ATOMIC 2022-06-20 10:30:33 +01:00
serial_ir.c
st_rc.c media: st_rc: Convert to platform remove callback returning void 2023-04-11 16:59:21 +02:00
streamzap.c media: streamzap: avoid unnecessary GFP_ATOMIC 2022-06-20 10:30:33 +01:00
sunxi-cir.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
ttusbir.c media: ttusbir: avoid unnecessary usb_unlink_urb() 2022-06-20 10:30:33 +01:00
winbond-cir.c
xbox_remote.c media: xbox_remote: xbox_remote_initialize() cannot fail 2022-06-20 10:30:33 +01:00