]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
firmware_classs: change val uevent's type to bool
authorBob Liu <lliubbo@gmail.com>
Wed, 26 Jan 2011 10:33:32 +0000 (18:33 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 Feb 2011 23:39:17 +0000 (15:39 -0800)
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>
drivers/base/firmware_class.c
include/linux/firmware.h

index 40af43ebd92d355e5b96092d0f4b4ac0a3fd05ea..8c798ef7f13fcc25ea1627ed3870dca0b97d1a21 100644 (file)
@@ -593,8 +593,7 @@ int
 request_firmware(const struct firmware **firmware_p, const char *name,
                  struct device *device)
 {
-        int uevent = 1;
-        return _request_firmware(firmware_p, name, device, uevent, false);
+        return _request_firmware(firmware_p, name, device, true, false);
 }
 
 /**
@@ -618,7 +617,7 @@ struct firmware_work {
        struct device *device;
        void *context;
        void (*cont)(const struct firmware *fw, void *context);
-       int uevent;
+       bool uevent;
 };
 
 static int request_firmware_work_func(void *arg)
@@ -661,7 +660,7 @@ static int request_firmware_work_func(void *arg)
  **/
 int
 request_firmware_nowait(
-       struct module *module, int uevent,
+       struct module *module, bool uevent,
        const char *name, struct device *device, gfp_t gfp, void *context,
        void (*cont)(const struct firmware *fw, void *context))
 {
index 53d1e6c4f848e710436c77d8fb8b146b7a8ba0e7..21b3e7588abd32e29b482b2ce4797b2a808e27b4 100644 (file)
@@ -39,7 +39,7 @@ struct builtin_fw {
 int request_firmware(const struct firmware **fw, const char *name,
                     struct device *device);
 int request_firmware_nowait(
-       struct module *module, int uevent,
+       struct module *module, bool uevent,
        const char *name, struct device *device, gfp_t gfp, void *context,
        void (*cont)(const struct firmware *fw, void *context));
 
@@ -52,7 +52,7 @@ static inline int request_firmware(const struct firmware **fw,
        return -EINVAL;
 }
 static inline int request_firmware_nowait(
-       struct module *module, int uevent,
+       struct module *module, bool uevent,
        const char *name, struct device *device, gfp_t gfp, void *context,
        void (*cont)(const struct firmware *fw, void *context))
 {