Commit 7e8e16ca authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (12713): em28xx: Cleanups at ir_i2c handler

There are some extra parenthesis at the clauses, and some switch() tests
for boards that don't have i2c ir. Remove those extra code.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ac07bb73
...@@ -2213,34 +2213,22 @@ void em28xx_register_i2c_ir(struct em28xx *dev) ...@@ -2213,34 +2213,22 @@ void em28xx_register_i2c_ir(struct em28xx *dev)
/* detect & configure */ /* detect & configure */
switch (dev->model) { switch (dev->model) {
case (EM2800_BOARD_UNKNOWN): case EM2800_BOARD_TERRATEC_CINERGY_200:
break; case EM2820_BOARD_TERRATEC_CINERGY_250:
case (EM2820_BOARD_UNKNOWN):
break;
case (EM2800_BOARD_TERRATEC_CINERGY_200):
case (EM2820_BOARD_TERRATEC_CINERGY_250):
dev->init_data.ir_codes = &ir_codes_em_terratec_table; dev->init_data.ir_codes = &ir_codes_em_terratec_table;
dev->init_data.get_key = em28xx_get_key_terratec; dev->init_data.get_key = em28xx_get_key_terratec;
dev->init_data.name = "i2c IR (EM28XX Terratec)"; dev->init_data.name = "i2c IR (EM28XX Terratec)";
break; break;
case (EM2820_BOARD_PINNACLE_USB_2): case EM2820_BOARD_PINNACLE_USB_2:
dev->init_data.ir_codes = &ir_codes_pinnacle_grey_table; dev->init_data.ir_codes = &ir_codes_pinnacle_grey_table;
dev->init_data.get_key = em28xx_get_key_pinnacle_usb_grey; dev->init_data.get_key = em28xx_get_key_pinnacle_usb_grey;
dev->init_data.name = "i2c IR (EM28XX Pinnacle PCTV)"; dev->init_data.name = "i2c IR (EM28XX Pinnacle PCTV)";
break; break;
case (EM2820_BOARD_HAUPPAUGE_WINTV_USB_2): case EM2820_BOARD_HAUPPAUGE_WINTV_USB_2:
dev->init_data.ir_codes = &ir_codes_hauppauge_new_table; dev->init_data.ir_codes = &ir_codes_hauppauge_new_table;
dev->init_data.get_key = em28xx_get_key_em_haup; dev->init_data.get_key = em28xx_get_key_em_haup;
dev->init_data.name = "i2c IR (EM2840 Hauppauge)"; dev->init_data.name = "i2c IR (EM2840 Hauppauge)";
break; break;
case (EM2820_BOARD_MSI_VOX_USB_2):
break;
case (EM2800_BOARD_LEADTEK_WINFAST_USBII):
break;
case (EM2800_BOARD_KWORLD_USB2800):
break;
case (EM2800_BOARD_GRABBEEX_USB2800):
break;
} }
if (dev->init_data.name) if (dev->init_data.name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment