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

Commit 942e743b authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Greg Kroah-Hartman
Browse files

firmware: use static inline for to_fw_priv()



This lets us type check the callers.

Signed-off-by: default avatarLuis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 33a5b18d
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -125,7 +125,10 @@ struct fw_name_devm {
	const char *name;
	const char *name;
};
};


#define to_fw_priv(d) container_of(d, struct fw_priv, ref)
static inline struct fw_priv *to_fw_priv(struct kref *ref)
{
	return container_of(ref, struct fw_priv, ref);
}


#define	FW_LOADER_NO_CACHE	0
#define	FW_LOADER_NO_CACHE	0
#define	FW_LOADER_START_CACHE	1
#define	FW_LOADER_START_CACHE	1