2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 08:44:14 +08:00

staging: fwserial: Convert macro into an inline function

Convert macro into an inline function to make codebase better

Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Madhumitha Prabakaran 2019-03-06 16:48:09 -06:00 committed by Greg Kroah-Hartman
parent 50d280f3e3
commit a57250582a

View File

@ -19,7 +19,10 @@
#include "fwserial.h" #include "fwserial.h"
#define be32_to_u64(hi, lo) ((u64)be32_to_cpu(hi) << 32 | be32_to_cpu(lo)) inline u64 be32_to_u64(__be32 hi, __be32 lo)
{
return ((u64)be32_to_cpu(hi) << 32 | be32_to_cpu(lo));
}
#define LINUX_VENDOR_ID 0xd00d1eU /* same id used in card root directory */ #define LINUX_VENDOR_ID 0xd00d1eU /* same id used in card root directory */
#define FWSERIAL_VERSION 0x00e81cU /* must be unique within LINUX_VENDOR_ID */ #define FWSERIAL_VERSION 0x00e81cU /* must be unique within LINUX_VENDOR_ID */