mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
firmware: use static inline for to_fw_priv()
This lets us type check the callers. Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
33a5b18de2
commit
942e743b73
1 changed files with 4 additions and 1 deletions
|
|
@ -125,7 +125,10 @@ struct fw_name_devm {
|
|||
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_START_CACHE 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue