diff options
author | Madhumitha Prabakaran <madhumithabiw@gmail.com> | 2019-03-07 01:48:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-18 09:05:20 +0300 |
commit | a57250582a00318090ff83d05405215fa4e7388a (patch) | |
tree | 96b758660c86a93a93cddfb42079223d87a75534 /drivers/staging/fwserial | |
parent | 50d280f3e31c2f7825fc1664062e75deccf6f616 (diff) | |
download | linux-a57250582a00318090ff83d05405215fa4e7388a.tar.xz |
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>
Diffstat (limited to 'drivers/staging/fwserial')
-rw-r--r-- | drivers/staging/fwserial/fwserial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c index a1b90ea7fcb8..aec0f19597a9 100644 --- a/drivers/staging/fwserial/fwserial.c +++ b/drivers/staging/fwserial/fwserial.c @@ -19,7 +19,10 @@ #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 FWSERIAL_VERSION 0x00e81cU /* must be unique within LINUX_VENDOR_ID */ |