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:
committed by
Stephen Boyd
parent
151ef5c408
commit
b1ea821890
@@ -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:
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
struct gpio_ir_recv_platform_data {
|
||||
int gpio_nr;
|
||||
bool active_low;
|
||||
bool can_wakeup;
|
||||
};
|
||||
|
||||
#endif /* __GPIO_IR_RECV_H__ */
|
||||
|
||||
Reference in New Issue
Block a user