2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00

media: rc: winbond: do not send reset and timeout raw events on startup

ir_raw_event_set_idle() sends a timeout event which is not needed, and
on startup no reset event is needed either.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Sean Young 2018-05-11 05:36:26 -04:00 committed by Mauro Carvalho Chehab
parent 09161a0552
commit 5dae9cea2a

View File

@ -989,8 +989,7 @@ wbcir_init_hw(struct wbcir_data *data)
/* Clear RX state */ /* Clear RX state */
data->rxstate = WBCIR_RXSTATE_INACTIVE; data->rxstate = WBCIR_RXSTATE_INACTIVE;
ir_raw_event_reset(data->dev); wbcir_idle_rx(data->dev, true);
ir_raw_event_set_idle(data->dev, true);
/* Clear TX state */ /* Clear TX state */
if (data->txstate == WBCIR_TXSTATE_ACTIVE) { if (data->txstate == WBCIR_TXSTATE_ACTIVE) {
@ -1009,6 +1008,7 @@ wbcir_resume(struct pnp_dev *device)
struct wbcir_data *data = pnp_get_drvdata(device); struct wbcir_data *data = pnp_get_drvdata(device);
wbcir_init_hw(data); wbcir_init_hw(data);
ir_raw_event_reset(data->dev);
enable_irq(data->irq); enable_irq(data->irq);
led_classdev_resume(&data->led); led_classdev_resume(&data->led);