media: rc: Add wakeup functionality from GPIO IR event

Add can_wakeup functionality flag so that host can wakeup from
IR event.

Change-Id: I5cfa95fc17f390271d315a38d14dcbccd49dda78
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
This commit is contained in:
Trilok Soni
2012-04-19 22:24:17 +05:30
committed by Stephen Boyd
parent 151ef5c408
commit b1ea821890
2 changed files with 3 additions and 0 deletions

View File

@@ -115,6 +115,8 @@ static int __devinit gpio_ir_recv_probe(struct platform_device *pdev)
if (rc < 0)
goto err_request_irq;
device_init_wakeup(&pdev->dev, pdata->can_wakeup);
return 0;
err_request_irq:

View File

@@ -16,6 +16,7 @@
struct gpio_ir_recv_platform_data {
int gpio_nr;
bool active_low;
bool can_wakeup;
};
#endif /* __GPIO_IR_RECV_H__ */