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
keymaps
ati_remote.c
bpf-lirc.c
ene_ir.c
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
igorplugusb.c
iguanair.c
imon_raw.c
imon.c media: imon: Convert sprintf/snprintf to sysfs_emit 2024-03-25 10:13:44 +01:00
ir_toy.c
ir-hix5hd2.c
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
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
lirc_dev.c media: lirc_dev: Make lirc_class constant 2024-03-25 10:13:44 +01:00
Makefile
mceusb.c
meson-ir-tx.c
meson-ir.c
mtk-cir.c
nuvoton-cir.c
nuvoton-cir.h
pwm-ir-tx.c
rc-core-priv.h
rc-ir-raw.c
rc-loopback.c
rc-main.c
redrat3.c
serial_ir.c
st_rc.c
streamzap.c
sunxi-cir.c
ttusbir.c
winbond-cir.c
xbox_remote.c