5cbbb376d6
Having the buffer on the stack and even re-using it for all led devices is bad. Not being able to resolve the name member of the led device structure to a meaningful value leads to confusion during ad-hoc debugging and potential breakage in the future, if we ever decide to access the name member outside of the registration function. Move the buffer to our private per led device structures so that it is accessible after registration. A quick grep didn't yield any occurence of using the led device name parameter outside of the led device registration function, so currently we should already be safe for normal operation. Signed-off-by: Sven Wegener <sven.wegener@stealer.net> Cc: Richard Purdie <rpurdie@rpsys.net> Acked-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> |
||
---|---|---|
.. | ||
ath5k | ||
b43 | ||
b43legacy | ||
hostap | ||
iwlwifi | ||
libertas | ||
p54 | ||
prism54 | ||
rt2x00 | ||
zd1211rw | ||
adm8211.c | ||
adm8211.h | ||
airo.c | ||
airo.h | ||
airo_cs.c | ||
airport.c | ||
arlan-main.c | ||
arlan-proc.c | ||
arlan.h | ||
atmel.c | ||
atmel.h | ||
atmel_cs.c | ||
atmel_pci.c | ||
hermes.c | ||
hermes.h | ||
hermes_rid.h | ||
i82586.h | ||
i82593.h | ||
ipw2100.c | ||
ipw2100.h | ||
ipw2200.c | ||
ipw2200.h | ||
Kconfig | ||
mac80211_hwsim.c | ||
Makefile | ||
netwave_cs.c | ||
orinoco.c | ||
orinoco.h | ||
orinoco_cs.c | ||
orinoco_nortel.c | ||
orinoco_pci.c | ||
orinoco_pci.h | ||
orinoco_plx.c | ||
orinoco_tmd.c | ||
ray_cs.c | ||
ray_cs.h | ||
rayctl.h | ||
rndis_wlan.c | ||
rtl818x.h | ||
rtl8180.h | ||
rtl8180_dev.c | ||
rtl8180_grf5101.c | ||
rtl8180_grf5101.h | ||
rtl8180_max2820.c | ||
rtl8180_max2820.h | ||
rtl8180_rtl8225.c | ||
rtl8180_rtl8225.h | ||
rtl8180_sa2400.c | ||
rtl8180_sa2400.h | ||
rtl8187.h | ||
rtl8187_dev.c | ||
rtl8187_rtl8225.c | ||
rtl8187_rtl8225.h | ||
spectrum_cs.c | ||
strip.c | ||
wavelan.c | ||
wavelan.h | ||
wavelan.p.h | ||
wavelan_cs.c | ||
wavelan_cs.h | ||
wavelan_cs.p.h | ||
wl3501.h | ||
wl3501_cs.c | ||
zd1201.c | ||
zd1201.h |