media: rc: i2c: only poll if the rc device is opened
authorSean Young <sean@mess.org>
Tue, 17 Oct 2017 20:31:20 +0000 (16:31 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 14 Dec 2017 14:58:19 +0000 (09:58 -0500)
commita6927d81c0073c89a468ff558212f230941a941f
tree596e02cc2b4a6099b046b59cbda15ba135cad942
parent50a762b413ad7ed137e75b79b1aa50cf4b1e2b73
media: rc: i2c: only poll if the rc device is opened

The lirc_zilog driver only polls the device if the lirc chardev
is opened; do the same with the rc-core driver.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ir-kbd-i2c.c