Skip to content

Commit

Permalink
[media] media: gpio-ir-recv: add map name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benoît Thébaudeau authored and Mauro Carvalho Chehab committed Jun 25, 2012
1 parent 975ef32 commit 2bd237b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/rc/gpio-ir-recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions include/media/gpio-ir-recv.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
struct gpio_ir_recv_platform_data {
int gpio_nr;
bool active_low;
const char *map_name;
};

#endif /* __GPIO_IR_RECV_H__ */
Expand Down

0 comments on commit 2bd237b

Please sign in to comment.