firmware: Reduce ifdef CONFIG_FW_LOADER_USER_HELPER
authorTakashi Iwai <tiwai@suse.de>
Thu, 31 Jan 2013 10:13:56 +0000 (11:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 01:57:40 +0000 (17:57 -0800)
commitcd7239fab7d32e56909027bfb5a6c2d7d3d862f8
treed951829a1bf1461ced3e763c766310b78c6a4a7d
parent7b1269f778782d2f42994a74bf4014d0cbebbf9f
firmware: Reduce ifdef CONFIG_FW_LOADER_USER_HELPER

By shuffling the code, reduce a few ifdefs in firmware_class.c.
Also, firmware_buf fmt field is changed to is_pages_buf boolean for
simplification.

Acked-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c