1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/broadcom/b43
Li Zhijian 6db5c15c8b wifi: b43: 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

CC: Larry Finger <Larry.Finger@lwfinger.net>
CC: Kalle Valo <kvalo@kernel.org>
CC: linux-wireless@vger.kernel.org
CC: b43-dev@lists.infradead.org
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240315055211.1347548-2-lizhijian@fujitsu.com
2024-03-21 17:07:53 +02:00
..
b43.h wifi: b43: Stop/wake correct queue in DMA Tx path when QoS is disabled 2024-01-10 16:56:17 +02:00
bus.c
bus.h
debugfs.c b43: don't save dentries for debugfs 2021-05-21 20:46:41 +02:00
debugfs.h b43: don't save dentries for debugfs 2021-05-21 20:46:41 +02:00
dma.c wifi: b43: Stop/wake correct queue in DMA Tx path when QoS is disabled 2024-01-10 16:56:17 +02:00
dma.h
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
leds.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
leds.h
lo.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
lo.h
main.c wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
main.h
Makefile
phy_a.h
phy_ac.c
phy_ac.h
phy_common.c b43: phy_common: Demote non-conformant kerneldoc header 2020-08-27 15:15:37 +03:00
phy_common.h wifi: b43: fix repeated words in comments 2022-07-18 15:07:27 +03:00
phy_g.c b43: fix a lower bounds test 2021-10-11 09:09:30 +03:00
phy_g.h
phy_ht.c wifi: b43: silence sparse warnings 2024-02-28 13:37:22 +02:00
phy_ht.h
phy_lcn.c
phy_lcn.h
phy_lp.c b43: Replace HTTP links with HTTPS ones 2020-08-02 18:16:35 +03:00
phy_lp.h
phy_n.c wifi: b43: silence sparse warnings 2024-02-28 13:37:22 +02:00
phy_n.h
pio.c wifi: b43: Stop/wake correct queue in PIO Tx path when QoS is disabled 2024-01-10 16:56:17 +02:00
pio.h
ppr.c
ppr.h
radio_2055.c
radio_2055.h
radio_2056.c b43: Replace HTTP links with HTTPS ones 2020-08-02 18:16:35 +03:00
radio_2056.h
radio_2057.c
radio_2057.h
radio_2059.c
radio_2059.h
rfkill.c
rfkill.h
sdio.c mmc: sdio: Move SDIO IDs from b43-sdio driver to common include file 2020-05-29 12:37:59 +02:00
sdio.h
sysfs.c wifi: b43: Convert sprintf/snprintf to sysfs_emit 2024-03-21 17:07:53 +02:00
sysfs.h
tables.c
tables.h
tables_lpphy.c
tables_lpphy.h
tables_nphy.c b43: Use fallthrough pseudo-keyword 2020-08-27 16:08:22 +03:00
tables_nphy.h
tables_phy_ht.c
tables_phy_ht.h
tables_phy_lcn.c
tables_phy_lcn.h
wa.c
wa.h
xmit.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
xmit.h