Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 072fc8f0 authored by Bob Liu's avatar Bob Liu Committed by Greg Kroah-Hartman
Browse files

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: default avatarBob Liu <lliubbo@gmail.com>
Acked-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8ba6ebf5
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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))
{
+2 −2
Original line number Diff line number Diff line
@@ -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))
{