diff options
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-input.c | 2 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 10 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-input.c | 2 | ||||
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 5 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 12 | ||||
-rw-r--r-- | include/media/ir-kbd-i2c.h | 1 |
6 files changed, 17 insertions, 15 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-input.c b/drivers/media/video/cx231xx/cx231xx-input.c index 97e304c3c799..48f22fa38e6c 100644 --- a/drivers/media/video/cx231xx/cx231xx-input.c +++ b/drivers/media/video/cx231xx/cx231xx-input.c | |||
@@ -36,7 +36,7 @@ MODULE_PARM_DESC(ir_debug, "enable debug messages [IR]"); | |||
36 | 36 | ||
37 | #define i2cdprintk(fmt, arg...) \ | 37 | #define i2cdprintk(fmt, arg...) \ |
38 | if (ir_debug) { \ | 38 | if (ir_debug) { \ |
39 | printk(KERN_DEBUG "%s/ir: " fmt, ir->c.name , ## arg); \ | 39 | printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \ |
40 | } | 40 | } |
41 | 41 | ||
42 | #define dprintk(fmt, arg...) \ | 42 | #define dprintk(fmt, arg...) \ |
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 3958f168fc57..b2aed29e2d74 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -1384,13 +1384,13 @@ struct em28xx_board em28xx_boards[] = { | |||
1384 | .type = EM28XX_VMUX_COMPOSITE1, | 1384 | .type = EM28XX_VMUX_COMPOSITE1, |
1385 | .vmux = TVP5150_COMPOSITE1, | 1385 | .vmux = TVP5150_COMPOSITE1, |
1386 | .amux = EM28XX_AUDIO_SRC_LINE, | 1386 | .amux = EM28XX_AUDIO_SRC_LINE, |
1387 | .gpio = terratec_av350_unmute_gpio, | 1387 | .gpio = terratec_av350_unmute_gpio, |
1388 | 1388 | ||
1389 | }, { | 1389 | }, { |
1390 | .type = EM28XX_VMUX_SVIDEO, | 1390 | .type = EM28XX_VMUX_SVIDEO, |
1391 | .vmux = TVP5150_SVIDEO, | 1391 | .vmux = TVP5150_SVIDEO, |
1392 | .amux = EM28XX_AUDIO_SRC_LINE, | 1392 | .amux = EM28XX_AUDIO_SRC_LINE, |
1393 | .gpio = terratec_av350_unmute_gpio, | 1393 | .gpio = terratec_av350_unmute_gpio, |
1394 | } }, | 1394 | } }, |
1395 | }, | 1395 | }, |
1396 | }; | 1396 | }; |
@@ -1929,19 +1929,19 @@ void em28xx_set_ir(struct em28xx *dev, struct IR_i2c *ir) | |||
1929 | case (EM2820_BOARD_TERRATEC_CINERGY_250): | 1929 | case (EM2820_BOARD_TERRATEC_CINERGY_250): |
1930 | ir->ir_codes = ir_codes_em_terratec; | 1930 | ir->ir_codes = ir_codes_em_terratec; |
1931 | ir->get_key = em28xx_get_key_terratec; | 1931 | ir->get_key = em28xx_get_key_terratec; |
1932 | snprintf(ir->c.name, sizeof(ir->c.name), | 1932 | snprintf(ir->name, sizeof(ir->name), |
1933 | "i2c IR (EM28XX Terratec)"); | 1933 | "i2c IR (EM28XX Terratec)"); |
1934 | break; | 1934 | break; |
1935 | case (EM2820_BOARD_PINNACLE_USB_2): | 1935 | case (EM2820_BOARD_PINNACLE_USB_2): |
1936 | ir->ir_codes = ir_codes_pinnacle_grey; | 1936 | ir->ir_codes = ir_codes_pinnacle_grey; |
1937 | ir->get_key = em28xx_get_key_pinnacle_usb_grey; | 1937 | ir->get_key = em28xx_get_key_pinnacle_usb_grey; |
1938 | snprintf(ir->c.name, sizeof(ir->c.name), | 1938 | snprintf(ir->name, sizeof(ir->name), |
1939 | "i2c IR (EM28XX Pinnacle PCTV)"); | 1939 | "i2c IR (EM28XX Pinnacle PCTV)"); |
1940 | break; | 1940 | break; |
1941 | case (EM2820_BOARD_HAUPPAUGE_WINTV_USB_2): | 1941 | case (EM2820_BOARD_HAUPPAUGE_WINTV_USB_2): |
1942 | ir->ir_codes = ir_codes_hauppauge_new; | 1942 | ir->ir_codes = ir_codes_hauppauge_new; |
1943 | ir->get_key = em28xx_get_key_em_haup; | 1943 | ir->get_key = em28xx_get_key_em_haup; |
1944 | snprintf(ir->c.name, sizeof(ir->c.name), | 1944 | snprintf(ir->name, sizeof(ir->name), |
1945 | "i2c IR (EM2840 Hauppauge)"); | 1945 | "i2c IR (EM2840 Hauppauge)"); |
1946 | break; | 1946 | break; |
1947 | case (EM2820_BOARD_MSI_VOX_USB_2): | 1947 | case (EM2820_BOARD_MSI_VOX_USB_2): |
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index a5abfd7a19f5..7450ba7dee83 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c | |||
@@ -40,7 +40,7 @@ MODULE_PARM_DESC(ir_debug, "enable debug messages [IR]"); | |||
40 | 40 | ||
41 | #define i2cdprintk(fmt, arg...) \ | 41 | #define i2cdprintk(fmt, arg...) \ |
42 | if (ir_debug) { \ | 42 | if (ir_debug) { \ |
43 | printk(KERN_DEBUG "%s/ir: " fmt, ir->c.name , ## arg); \ | 43 | printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \ |
44 | } | 44 | } |
45 | 45 | ||
46 | #define dprintk(fmt, arg...) \ | 46 | #define dprintk(fmt, arg...) \ |
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 092c7da0f37a..ba341e6fb2da 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -337,6 +337,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
337 | 337 | ||
338 | ir->c.adapter = adap; | 338 | ir->c.adapter = adap; |
339 | ir->c.addr = addr; | 339 | ir->c.addr = addr; |
340 | snprintf(ir->c.name, sizeof(ir->c.name), "ir-kbd"); | ||
340 | 341 | ||
341 | i2c_set_clientdata(&ir->c, ir); | 342 | i2c_set_clientdata(&ir->c, ir); |
342 | 343 | ||
@@ -410,7 +411,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
410 | } | 411 | } |
411 | 412 | ||
412 | /* Sets name */ | 413 | /* Sets name */ |
413 | snprintf(ir->c.name, sizeof(ir->c.name), "i2c IR (%s)", name); | 414 | snprintf(ir->name, sizeof(ir->name), "i2c IR (%s)", name); |
414 | ir->ir_codes = ir_codes; | 415 | ir->ir_codes = ir_codes; |
415 | 416 | ||
416 | /* register i2c device | 417 | /* register i2c device |
@@ -435,7 +436,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
435 | /* init + register input device */ | 436 | /* init + register input device */ |
436 | ir_input_init(input_dev, &ir->ir, ir_type, ir->ir_codes); | 437 | ir_input_init(input_dev, &ir->ir, ir_type, ir->ir_codes); |
437 | input_dev->id.bustype = BUS_I2C; | 438 | input_dev->id.bustype = BUS_I2C; |
438 | input_dev->name = ir->c.name; | 439 | input_dev->name = ir->name; |
439 | input_dev->phys = ir->phys; | 440 | input_dev->phys = ir->phys; |
440 | 441 | ||
441 | err = input_register_device(ir->input); | 442 | err = input_register_device(ir->input); |
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c index 450637517265..6cd693d3b8ed 100644 --- a/drivers/media/video/saa7134/saa7134-input.c +++ b/drivers/media/video/saa7134/saa7134-input.c | |||
@@ -60,7 +60,7 @@ MODULE_PARM_DESC(disable_other_ir, "disable full codes of " | |||
60 | #define dprintk(fmt, arg...) if (ir_debug) \ | 60 | #define dprintk(fmt, arg...) if (ir_debug) \ |
61 | printk(KERN_DEBUG "%s/ir: " fmt, dev->name , ## arg) | 61 | printk(KERN_DEBUG "%s/ir: " fmt, dev->name , ## arg) |
62 | #define i2cdprintk(fmt, arg...) if (ir_debug) \ | 62 | #define i2cdprintk(fmt, arg...) if (ir_debug) \ |
63 | printk(KERN_DEBUG "%s/ir: " fmt, ir->c.name , ## arg) | 63 | printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg) |
64 | 64 | ||
65 | /* Helper functions for RC5 and NEC decoding at GPIO16 or GPIO18 */ | 65 | /* Helper functions for RC5 and NEC decoding at GPIO16 or GPIO18 */ |
66 | static int saa7134_rc5_irq(struct saa7134_dev *dev); | 66 | static int saa7134_rc5_irq(struct saa7134_dev *dev); |
@@ -693,7 +693,7 @@ void saa7134_set_i2c_ir(struct saa7134_dev *dev, struct IR_i2c *ir) | |||
693 | switch (dev->board) { | 693 | switch (dev->board) { |
694 | case SAA7134_BOARD_PINNACLE_PCTV_110i: | 694 | case SAA7134_BOARD_PINNACLE_PCTV_110i: |
695 | case SAA7134_BOARD_PINNACLE_PCTV_310i: | 695 | case SAA7134_BOARD_PINNACLE_PCTV_310i: |
696 | snprintf(ir->c.name, sizeof(ir->c.name), "Pinnacle PCTV"); | 696 | snprintf(ir->name, sizeof(ir->name), "Pinnacle PCTV"); |
697 | if (pinnacle_remote == 0) { | 697 | if (pinnacle_remote == 0) { |
698 | ir->get_key = get_key_pinnacle_color; | 698 | ir->get_key = get_key_pinnacle_color; |
699 | ir->ir_codes = ir_codes_pinnacle_color; | 699 | ir->ir_codes = ir_codes_pinnacle_color; |
@@ -703,17 +703,17 @@ void saa7134_set_i2c_ir(struct saa7134_dev *dev, struct IR_i2c *ir) | |||
703 | } | 703 | } |
704 | break; | 704 | break; |
705 | case SAA7134_BOARD_UPMOST_PURPLE_TV: | 705 | case SAA7134_BOARD_UPMOST_PURPLE_TV: |
706 | snprintf(ir->c.name, sizeof(ir->c.name), "Purple TV"); | 706 | snprintf(ir->name, sizeof(ir->name), "Purple TV"); |
707 | ir->get_key = get_key_purpletv; | 707 | ir->get_key = get_key_purpletv; |
708 | ir->ir_codes = ir_codes_purpletv; | 708 | ir->ir_codes = ir_codes_purpletv; |
709 | break; | 709 | break; |
710 | case SAA7134_BOARD_MSI_TVATANYWHERE_PLUS: | 710 | case SAA7134_BOARD_MSI_TVATANYWHERE_PLUS: |
711 | snprintf(ir->c.name, sizeof(ir->c.name), "MSI TV@nywhere Plus"); | 711 | snprintf(ir->name, sizeof(ir->name), "MSI TV@nywhere Plus"); |
712 | ir->get_key = get_key_msi_tvanywhere_plus; | 712 | ir->get_key = get_key_msi_tvanywhere_plus; |
713 | ir->ir_codes = ir_codes_msi_tvanywhere_plus; | 713 | ir->ir_codes = ir_codes_msi_tvanywhere_plus; |
714 | break; | 714 | break; |
715 | case SAA7134_BOARD_HAUPPAUGE_HVR1110: | 715 | case SAA7134_BOARD_HAUPPAUGE_HVR1110: |
716 | snprintf(ir->c.name, sizeof(ir->c.name), "HVR 1110"); | 716 | snprintf(ir->name, sizeof(ir->name), "HVR 1110"); |
717 | ir->get_key = get_key_hvr1110; | 717 | ir->get_key = get_key_hvr1110; |
718 | ir->ir_codes = ir_codes_hauppauge_new; | 718 | ir->ir_codes = ir_codes_hauppauge_new; |
719 | break; | 719 | break; |
@@ -729,7 +729,7 @@ void saa7134_set_i2c_ir(struct saa7134_dev *dev, struct IR_i2c *ir) | |||
729 | case SAA7134_BOARD_BEHOLD_M63: | 729 | case SAA7134_BOARD_BEHOLD_M63: |
730 | case SAA7134_BOARD_BEHOLD_M6_EXTRA: | 730 | case SAA7134_BOARD_BEHOLD_M6_EXTRA: |
731 | case SAA7134_BOARD_BEHOLD_H6: | 731 | case SAA7134_BOARD_BEHOLD_H6: |
732 | snprintf(ir->c.name, sizeof(ir->c.name), "BeholdTV"); | 732 | snprintf(ir->name, sizeof(ir->name), "BeholdTV"); |
733 | ir->get_key = get_key_beholdm6xx; | 733 | ir->get_key = get_key_beholdm6xx; |
734 | ir->ir_codes = ir_codes_behold; | 734 | ir->ir_codes = ir_codes_behold; |
735 | break; | 735 | break; |
diff --git a/include/media/ir-kbd-i2c.h b/include/media/ir-kbd-i2c.h index 07963d705400..6a9719c8e903 100644 --- a/include/media/ir-kbd-i2c.h +++ b/include/media/ir-kbd-i2c.h | |||
@@ -15,6 +15,7 @@ struct IR_i2c { | |||
15 | unsigned char old; | 15 | unsigned char old; |
16 | 16 | ||
17 | struct delayed_work work; | 17 | struct delayed_work work; |
18 | char name[32]; | ||
18 | char phys[32]; | 19 | char phys[32]; |
19 | int (*get_key)(struct IR_i2c*, u32*, u32*); | 20 | int (*get_key)(struct IR_i2c*, u32*, u32*); |
20 | }; | 21 | }; |