media: rc: rename RC_TYPE_* to RC_PROTO_* and RC_BIT_* to RC_PROTO_BIT_*
RC_TYPE is confusing and it's just the protocol. So rename it. Suggested-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Sean Young <sean@mess.org> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

父節點
a9a249a2c9
當前提交
6d741bfed5
@@ -1142,7 +1142,7 @@ static int anysee_rc_query(struct dvb_usb_device *d)
|
||||
if (ircode[0]) {
|
||||
dev_dbg(&d->udev->dev, "%s: key pressed %02x\n", __func__,
|
||||
ircode[1]);
|
||||
rc_keydown(d->rc_dev, RC_TYPE_NEC,
|
||||
rc_keydown(d->rc_dev, RC_PROTO_NEC,
|
||||
RC_SCANCODE_NEC(0x08, ircode[1]), 0);
|
||||
}
|
||||
|
||||
@@ -1151,7 +1151,7 @@ static int anysee_rc_query(struct dvb_usb_device *d)
|
||||
|
||||
static int anysee_get_rc_config(struct dvb_usb_device *d, struct dvb_usb_rc *rc)
|
||||
{
|
||||
rc->allowed_protos = RC_BIT_NEC;
|
||||
rc->allowed_protos = RC_PROTO_BIT_NEC;
|
||||
rc->query = anysee_rc_query;
|
||||
rc->interval = 250; /* windows driver uses 500ms */
|
||||
|
||||
|
Reference in New Issue
Block a user