diff options
author | Benoît Thébaudeau <benoit.thebaudeau@advansee.com> | 2012-06-18 15:02:44 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-25 14:37:52 -0300 |
commit | 2bd237b8a45eb107d6304496fbd5b4a34471fbd3 (patch) | |
tree | ed8f3f4b8acbedbfc6d5344b0a87ce4dcf4292fb /drivers/media/rc | |
parent | 975ef32e7e9256289a11ead39daada782dac73eb (diff) | |
download | linux-3.10-2bd237b8a45eb107d6304496fbd5b4a34471fbd3.tar.gz linux-3.10-2bd237b8a45eb107d6304496fbd5b4a34471fbd3.tar.bz2 linux-3.10-2bd237b8a45eb107d6304496fbd5b4a34471fbd3.zip |
[media] media: gpio-ir-recv: add map name
Make it possible for gpio-ir-recv users to choose a map name.
Cc: Ravi Kumar V <kumarrav@codeaurora.org>
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/gpio-ir-recv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/gpio-ir-recv.c b/drivers/media/rc/gpio-ir-recv.c index b41e13c393c..15e346e0bcd 100644 --- a/drivers/media/rc/gpio-ir-recv.c +++ b/drivers/media/rc/gpio-ir-recv.c @@ -93,7 +93,7 @@ static int __devinit gpio_ir_recv_probe(struct platform_device *pdev) rcdev->input_id.version = 0x0100; rcdev->dev.parent = &pdev->dev; rcdev->driver_name = GPIO_IR_DRIVER_NAME; - rcdev->map_name = RC_MAP_EMPTY; + rcdev->map_name = pdata->map_name ?: RC_MAP_EMPTY; gpio_dev->rcdev = rcdev; gpio_dev->gpio_nr = pdata->gpio_nr; |