firmware: allocate firmware id dynamically
commit976821d756c53b421d7c58a9ed60125016d330aa
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 26 May 2009 22:49:31 +0000 (27 00:49 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:30:24 +0000 (15 21:30 -0700)
treec4da7b73e909439b664cb5e03f602229c6abdc2c
parent7fcab099795812a8a08eb3b8c8ddb35c3685045f
firmware: allocate firmware id dynamically

The firmware loader has a statically allocated 30 bytes long string for
the firmware id (a.k.a. the firmware file name). There is no reason why
we couldnt allocate it dynamically, and avoid having restrictions on the
firmware names lengths.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Cc: Marcel Holtmann <holtmann@linux.intel.com>
Cc: Zhu Yi <yi.zhu@intel.com>,
Cc: John Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/firmware_class.c