wireless/p54: prepare for FIRMWARE_NAME_MAX removal
PATCH 1/1 wireless/p54: prepare for FIRMWARE_NAME_MAX removal
From: Samuel Ortiz <[email protected]>
We're going to remove the FIRMWARE_NAME_MAX definition in order to avoid any firmware name length restriction.
This patch gets rid of the statically allocated p54usb firmware string, and replaces them with const char pointers.
Signed-off-by Samuel Ortiz <[email protected]>
--- drivers/net/wireless/p54/p54usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/p54/p54usb.c +2 -2
@@ -84,8 +84,8 @@ MODULE_DEVICE_TABLE(usb, p54u_table);static const struct {u32 intf;enum p54u_hw_type type; -char fw[FIRMWARE_NAME_MAX ]; -char fw_legacy[FIRMWARE_NAME_MAX ]; +const char *fw; +const char *fw_legacy;char hw[20 ]; } p54u_fwlist[__NUM_P54U_HWTYPES] = { {
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/