]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[media] rc-core: fix some leftovers from the renaming patches
authorDavid Härdeman <david@hardeman.nu>
Fri, 19 Nov 2010 23:43:27 +0000 (20:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:54 +0000 (08:16 -0200)
Fix some minor comments etc which are leftover from the old naming scheme.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/ir-raw.c
drivers/media/rc/rc-core-priv.h
drivers/media/rc/rc-main.c
include/media/rc-core.h

index 165412fd240eed14ed7d212ffe2456139f5a0a81..185baddcbf14545b829a0aba4e84f2917bcc935e 100644 (file)
@@ -1,4 +1,4 @@
-/* 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>
  *
index 48065b714d009faef8a10e2846e3bc6914e6ce13..873b387897511f59b446bfe4a9a94659a8f0611c 100644 (file)
@@ -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 */
index 0b0524c29325f18b64d183a0a48e851bcc4ea6fe..6bdd0d3c02e8ae83441023f452f2a2e5247d2576 100644 (file)
@@ -1,4 +1,4 @@
-/* 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>
  *
index affb93feed3b8888bc83dd6aa81819b9555652fe..a23c1fc685a1e3426c2ba6b578d7158621fcf917 100644 (file)
@@ -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;