]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
V4L/DVB: AZ6027: Fix build warnings
authorManu Abraham <abraham.manu@gmail.com>
Sun, 14 Feb 2010 20:07:28 +0000 (17:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:11:01 +0000 (15:11 -0300)
drivers/media/dvb/dvb-usb/az6027.c:390: warning: excess elements in struct initializer
drivers/media/dvb/dvb-usb/az6027.c:390: warning: (near initialization for ‘az6027_rc_keys[0]’)
drivers/media/dvb/dvb-usb/az6027.c:391: warning: excess elements in struct initializer
drivers/media/dvb/dvb-usb/az6027.c:391: warning: (near initialization for ‘az6027_rc_keys[1]’)
drivers/media/dvb/dvb-usb/az6027.c:759: warning: ‘az6027_read_mac_addr’ defined but not used

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/az6027.c

index 30fd046d9d0d661e93ba995e2a7902a431927f0d..d7290b2c091397005ad81496c06041e730db41d9 100644 (file)
@@ -387,8 +387,8 @@ static int az6027_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
 
 /* keys for the enclosed remote control */
 static struct dvb_usb_rc_key az6027_rc_keys[] = {
-       { 0x00, 0x01, KEY_1 },
-       { 0x00, 0x02, KEY_2 },
+       { 0x01, KEY_1 },
+       { 0x02, KEY_2 },
 };
 
 /* remote control stuff (does not work with my box) */
@@ -754,13 +754,13 @@ static int az6027_ci_init(struct dvb_usb_adapter *a)
        return 0;
 }
 
-
+/*
 static int az6027_read_mac_addr(struct dvb_usb_device *d, u8 mac[6])
 {
        az6027_usb_in_op(d, 0xb7, 6, 0, &mac[0], 6);
        return 0;
 }
-
+*/
 
 static int az6027_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage)
 {