diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2020-03-09 06:52:41 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-10 07:57:28 +0300 |
commit | 650c0e525ce60e80b6756aa8cc4eeae5b20ccbd8 (patch) | |
tree | 579e92ff39fa780818fe483337850d28df5ddb15 /include/sbi/sbi_bitops.h | |
parent | 6e87507db6ce7be39ccccb33d6283814f0283c09 (diff) | |
download | opensbi-650c0e525ce60e80b6756aa8cc4eeae5b20ccbd8.tar.xz |
lib: sbi: Fix coding style issues
This fixes various coding style issues found in the SBI codes.
No functional changes.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/sbi_bitops.h')
-rw-r--r-- | include/sbi/sbi_bitops.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/sbi/sbi_bitops.h b/include/sbi/sbi_bitops.h index c55ced0..d920086 100644 --- a/include/sbi/sbi_bitops.h +++ b/include/sbi/sbi_bitops.h @@ -215,20 +215,20 @@ static inline unsigned long __fls(unsigned long word) (bit) = find_next_zero_bit((addr), (size), (bit) + 1)) unsigned long find_first_bit(const unsigned long *addr, - unsigned long size); + unsigned long size); unsigned long find_first_zero_bit(const unsigned long *addr, - unsigned long size); + unsigned long size); unsigned long find_last_bit(const unsigned long *addr, - unsigned long size); + unsigned long size); unsigned long find_next_bit(const unsigned long *addr, - unsigned long size, unsigned long offset); + unsigned long size, unsigned long offset); unsigned long find_next_zero_bit(const unsigned long *addr, - unsigned long size, - unsigned long offset); + unsigned long size, + unsigned long offset); /** * __set_bit - Set a bit in memory @@ -242,7 +242,7 @@ static inline void __set_bit(int nr, volatile unsigned long *addr) unsigned long mask = BIT_MASK(nr); unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); - *p |= mask; + *p |= mask; } /** |