diff options
author | Olli Salonen <olli.salonen@iki.fi> | 2016-03-11 07:48:03 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-05-07 15:27:18 +0200 |
commit | 6dfe991113504108b04b1c36d09436e1712942b8 (patch) | |
tree | 7aec4cd5ba254b77983ff312cce929b2b1c41d5f /drivers/media/pci/smipcie/smipcie-ir.c | |
parent | [media] smipcie: MAC address printout formatting (diff) | |
download | linux-6dfe991113504108b04b1c36d09436e1712942b8.tar.xz linux-6dfe991113504108b04b1c36d09436e1712942b8.zip |
[media] smipcie: add RC map into card configuration options
Remove the if..else statement from smipcie-ir.c and add the remote
controller map as a configuration parameter for the card.
Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/smipcie/smipcie-ir.c')
-rw-r--r-- | drivers/media/pci/smipcie/smipcie-ir.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/pci/smipcie/smipcie-ir.c b/drivers/media/pci/smipcie/smipcie-ir.c index d737b5e767d0..826c7c75e64d 100644 --- a/drivers/media/pci/smipcie/smipcie-ir.c +++ b/drivers/media/pci/smipcie/smipcie-ir.c @@ -203,10 +203,7 @@ int smi_ir_init(struct smi_dev *dev) rc_dev->dev.parent = &dev->pci_dev->dev; rc_dev->driver_type = RC_DRIVER_SCANCODE; - if (dev->info->type == SMI_TECHNOTREND_S2_4200) - rc_dev->map_name = RC_MAP_TT_1500; - else - rc_dev->map_name = RC_MAP_DVBSKY; + rc_dev->map_name = dev->info->rc_map; ir->rc_dev = rc_dev; ir->dev = dev; |