[media] rc: protocol is not set on register for raw IR devices
authorSean Young <sean@mess.org>
Thu, 23 Feb 2017 09:11:21 +0000 (06:11 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Mar 2017 10:06:59 +0000 (07:06 -0300)
commit5df62771c556e4ec9d7ecea1f070ff6da4bce151
tree123f609c2c0960d6e8226c54a19c44a1a9905c7e
parent413808685dd7c9b54bbc5af79da2eaddd0fc3cb2
[media] rc: protocol is not set on register for raw IR devices

ir_raw_event_register() sets up change_protocol(), and without that set,
rc_setup_rx_device() does not set the protocol for the device on register.

The standard udev rules run ir-keytable, which writes to the protocols
file again, which hides this problem.

Fixes: 7ff2c2b ("[media] rc-main: split setup and unregister functions")

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