mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
bb1e67793f
Add SPDX license tags to remove checkpatch SPDX warnings. Signed-off-by: Kim Bradley <kim.jamie.bradley@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
25 lines
428 B
C
25 lines
428 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Driver for Realtek PCI-Express card reader
|
|
*
|
|
* Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
|
|
*
|
|
* Author:
|
|
* Wei WANG (wei_wang@realsil.com.cn)
|
|
* Micky Ching (micky_ching@realsil.com.cn)
|
|
*/
|
|
|
|
#include "general.h"
|
|
|
|
int bit1cnt_long(u32 data)
|
|
{
|
|
int i, cnt = 0;
|
|
|
|
for (i = 0; i < 32; i++) {
|
|
if (data & 0x01)
|
|
cnt++;
|
|
data >>= 1;
|
|
}
|
|
return cnt;
|
|
}
|
|
|