aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-05-13 15:48:07 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:21:11 -0400
commit1df8e9861cf9fac5737ccb61c7f7fefa77711d40 (patch)
treebacc30f912a50aeff07f869f610e76845bd1d148 /drivers/media/video/em28xx
parent24c44d85114098a013dd5fed084fb27ad803f000 (diff)
V4L/DVB (11843): ir-kbd-i2c: Don't use i2c_client.name for our own needs
In the standard device driver binding model, the name field of struct i2c_client is used to match devices to their drivers, so we must stop using it for internal purposes. Define a separate field in struct IR_i2c as a replacement, and use it. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c10
-rw-r--r--drivers/media/video/em28xx/em28xx-input.c2
2 files changed, 6 insertions, 6 deletions
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...) \