提交 2bd237b8 编写于 作者: B Benoît Thébaudeau 提交者: Mauro Carvalho Chehab

[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: NBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 975ef32e
...@@ -93,7 +93,7 @@ static int __devinit gpio_ir_recv_probe(struct platform_device *pdev) ...@@ -93,7 +93,7 @@ static int __devinit gpio_ir_recv_probe(struct platform_device *pdev)
rcdev->input_id.version = 0x0100; rcdev->input_id.version = 0x0100;
rcdev->dev.parent = &pdev->dev; rcdev->dev.parent = &pdev->dev;
rcdev->driver_name = GPIO_IR_DRIVER_NAME; 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->rcdev = rcdev;
gpio_dev->gpio_nr = pdata->gpio_nr; gpio_dev->gpio_nr = pdata->gpio_nr;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
struct gpio_ir_recv_platform_data { struct gpio_ir_recv_platform_data {
int gpio_nr; int gpio_nr;
bool active_low; bool active_low;
const char *map_name;
}; };
#endif /* __GPIO_IR_RECV_H__ */ #endif /* __GPIO_IR_RECV_H__ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册