firmware: Use bit flags instead of boolean combos
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 Dec 2013 14:38:18 +0000 (15:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 02:22:32 +0000 (18:22 -0800)
commit14c4bae77c80bd37f19d95405d42bd0b1fd95add
tree20922f074d84715b7230d4fd1d0b6ae287c8b654
parent75da02b29fd99cb2d6ac822f2864de4d6e35b9fd
firmware: Use bit flags instead of boolean combos

More than two boolean arguments to a function are rather confusing and
error-prone for callers.  Let's make the behavior bit flags instead of
triple combos.

A nice suggestion by Borislav Petkov.

Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Prarit Bhargava <prarit@redhat.com>
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