[media] rc: abstract access to allowed/enabled protocols
The allowed and enabled protocol masks need to be expanded to be per filter type in order to support wakeup filter protocol selection. To ease that process abstract access to the rc_dev::allowed_protos and rc_dev::enabled_protocols members with inline functions. Signed-off-by: James Hogan <james.hogan@imgtec.com> Reviewed-by: Antti Seppälä <a.seppala@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
此提交包含在:
@@ -318,7 +318,7 @@ static int ttusbir_probe(struct usb_interface *intf,
|
||||
usb_to_input_id(tt->udev, &rc->input_id);
|
||||
rc->dev.parent = &intf->dev;
|
||||
rc->driver_type = RC_DRIVER_IR_RAW;
|
||||
rc->allowed_protos = RC_BIT_ALL;
|
||||
rc_set_allowed_protocols(rc, RC_BIT_ALL);
|
||||
rc->priv = tt;
|
||||
rc->driver_name = DRIVER_NAME;
|
||||
rc->map_name = RC_MAP_TT_1500;
|
||||
|
新增問題並參考
封鎖使用者