]> err.no Git - linux-2.6/commitdiff
[PATCH] dvb: cinergyT2: endianness fix for raw remote-control keys
authorMartin Loschwitz <madkiss@madkiss.org>
Fri, 8 Jul 2005 00:57:31 +0000 (17:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:52 +0000 (18:23 -0700)
Fixed litte/big-endian conversion for raw remote-control keys.

Signed-off-by: Martin Loschwitz <madkiss@madkiss.org>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/cinergyT2/cinergyT2.c

index 96c57fde95a0da96efd4e16f47c8417837ee7a2c..7d8b3cad350bea238b84d4029cf209d894c116f5 100644 (file)
@@ -699,6 +699,8 @@ static void cinergyt2_query_rc (void *data)
        for (n=0; len>0 && n<(len/sizeof(rc_events[0])); n++) {
                int i;
 
+/*             dprintk(1,"rc_events[%d].value = %x, type=%x\n",n,le32_to_cpu(rc_events[n].value),rc_events[n].type);*/
+
                if (rc_events[n].type == CINERGYT2_RC_EVENT_TYPE_NEC &&
                    rc_events[n].value == ~0)
                {
@@ -714,7 +716,7 @@ static void cinergyt2_query_rc (void *data)
                        cinergyt2->rc_input_event = KEY_MAX;
                        for (i=0; i<sizeof(rc_keys)/sizeof(rc_keys[0]); i+=3) {
                                if (rc_keys[i+0] == rc_events[n].type &&
-                                   rc_keys[i+1] == rc_events[n].value)
+                                   rc_keys[i+1] == le32_to_cpu(rc_events[n].value))
                                {
                                        cinergyt2->rc_input_event = rc_keys[i+2];
                                        break;