提交 829ba9fe 编写于 作者: D David Härdeman 提交者: Mauro Carvalho Chehab

[media] rc-core: fix some leftovers from the renaming patches

Fix some minor comments etc which are leftover from the old naming scheme.
Signed-off-by: NDavid Härdeman <david@hardeman.nu>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 3938e0cf
/* ir-raw-event.c - handle IR Pulse/Space event
/* ir-raw.c - handle IR pulse/space events
*
* Copyright (C) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
*
......
......@@ -13,8 +13,8 @@
* GNU General Public License for more details.
*/
#ifndef _IR_RAW_EVENT
#define _IR_RAW_EVENT
#ifndef _RC_CORE_PRIV
#define _RC_CORE_PRIV
#include <linux/slab.h>
#include <linux/spinlock.h>
......@@ -190,4 +190,4 @@ void ir_raw_init(void);
#endif
#endif /* _IR_RAW_EVENT */
#endif /* _RC_CORE_PRIV */
/* rc-core.c - handle IR scancode->keycode tables
/* rc-main.c - Remote Controller core module
*
* Copyright (C) 2009-2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
*
......
......@@ -206,12 +206,12 @@ static inline u32 ir_extract_bits(u32 data, u32 mask)
u32 vbit = 1, value = 0;
do {
if (mask & 1) {
if (data & 1)
value |= vbit;
vbit <<= 1;
}
data >>= 1;
if (mask & 1) {
if (data & 1)
value |= vbit;
vbit <<= 1;
}
data >>= 1;
} while (mask >>= 1);
return value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册