diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-05-13 15:48:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:21:11 -0400 |
commit | 1df8e9861cf9fac5737ccb61c7f7fefa77711d40 (patch) | |
tree | bacc30f912a50aeff07f869f610e76845bd1d148 /drivers/media/video/saa7134 | |
parent | 24c44d85114098a013dd5fed084fb27ad803f000 (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/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |