Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware_classs: change val uevent's type to bool

Some place in firmware_class.c using "int uevent" define, but others use "bool
uevent".
This patch replace all int uevent define to bool.

Signed-off-by: Bob Liu <lliubbo@gmail.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Bob Liu and committed by
Greg Kroah-Hartman
072fc8f0 8ba6ebf5

+5 -6
+3 -4
drivers/base/firmware_class.c
··· 593 593 request_firmware(const struct firmware **firmware_p, const char *name, 594 594 struct device *device) 595 595 { 596 - int uevent = 1; 597 - return _request_firmware(firmware_p, name, device, uevent, false); 596 + return _request_firmware(firmware_p, name, device, true, false); 598 597 } 599 598 600 599 /** ··· 617 618 struct device *device; 618 619 void *context; 619 620 void (*cont)(const struct firmware *fw, void *context); 620 - int uevent; 621 + bool uevent; 621 622 }; 622 623 623 624 static int request_firmware_work_func(void *arg) ··· 660 661 **/ 661 662 int 662 663 request_firmware_nowait( 663 - struct module *module, int uevent, 664 + struct module *module, bool uevent, 664 665 const char *name, struct device *device, gfp_t gfp, void *context, 665 666 void (*cont)(const struct firmware *fw, void *context)) 666 667 {
+2 -2
include/linux/firmware.h
··· 39 39 int request_firmware(const struct firmware **fw, const char *name, 40 40 struct device *device); 41 41 int request_firmware_nowait( 42 - struct module *module, int uevent, 42 + struct module *module, bool uevent, 43 43 const char *name, struct device *device, gfp_t gfp, void *context, 44 44 void (*cont)(const struct firmware *fw, void *context)); 45 45 ··· 52 52 return -EINVAL; 53 53 } 54 54 static inline int request_firmware_nowait( 55 - struct module *module, int uevent, 55 + struct module *module, bool uevent, 56 56 const char *name, struct device *device, gfp_t gfp, void *context, 57 57 void (*cont)(const struct firmware *fw, void *context)) 58 58 {