V4L/DVB (5959): Fix for size of remote keys in DiB0700
authorPatrick Boettcher <pb@linuxtv.org>
Mon, 30 Jul 2007 20:02:17 +0000 (17:02 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:03:49 +0000 (22:03 -0300)
Fix for size of remote control keys in DiB0700.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/dib0700_devices.c

index b0ae5b73129667c0370791f67f9ef01b302b4ca7..a2b2830f978a33a0bb2ba3db6119ae00577f3c8b 100644 (file)
@@ -914,7 +914,7 @@ struct dvb_usb_device_properties dib0700_devices[] = {
 
                .rc_interval      = DEFAULT_RC_INTERVAL,
                .rc_key_map       = dib0700_rc_keys,
-               .rc_key_map_size  = sizeof(dib0700_rc_keys),
+               .rc_key_map_size  = ARRAY_SIZE(dib0700_rc_keys),
                .rc_query         = dib0700_rc_query
        }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,
 
@@ -955,7 +955,7 @@ struct dvb_usb_device_properties dib0700_devices[] = {
 
                .rc_interval      = DEFAULT_RC_INTERVAL,
                .rc_key_map       = dib0700_rc_keys,
-               .rc_key_map_size  = sizeof(dib0700_rc_keys),
+               .rc_key_map_size  = ARRAY_SIZE(dib0700_rc_keys),
                .rc_query         = dib0700_rc_query
 
        }, { DIB0700_DEFAULT_DEVICE_PROPERTIES,