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:

committad av
Mauro Carvalho Chehab

förälder
a9a249a2c9
incheckning
6d741bfed5
@@ -137,7 +137,7 @@ again:
|
||||
scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) |
|
||||
(bitrev8((data->bits >> 0) & 0xff) << 0);
|
||||
IR_dprintk(1, "JVC scancode 0x%04x\n", scancode);
|
||||
rc_keydown(dev, RC_TYPE_JVC, scancode, data->toggle);
|
||||
rc_keydown(dev, RC_PROTO_JVC, scancode, data->toggle);
|
||||
data->first = false;
|
||||
data->old_bits = data->bits;
|
||||
} else if (data->bits == data->old_bits) {
|
||||
@@ -193,7 +193,7 @@ static const struct ir_raw_timings_pd ir_jvc_timings = {
|
||||
* -ENOBUFS if there isn't enough space in the array to fit the
|
||||
* encoding. In this case all @max events will have been written.
|
||||
*/
|
||||
static int ir_jvc_encode(enum rc_type protocol, u32 scancode,
|
||||
static int ir_jvc_encode(enum rc_proto protocol, u32 scancode,
|
||||
struct ir_raw_event *events, unsigned int max)
|
||||
{
|
||||
struct ir_raw_event *e = events;
|
||||
@@ -209,7 +209,7 @@ static int ir_jvc_encode(enum rc_type protocol, u32 scancode,
|
||||
}
|
||||
|
||||
static struct ir_raw_handler jvc_handler = {
|
||||
.protocols = RC_BIT_JVC,
|
||||
.protocols = RC_PROTO_BIT_JVC,
|
||||
.decode = ir_jvc_decode,
|
||||
.encode = ir_jvc_encode,
|
||||
};
|
||||
|
Referens i nytt ärende
Block a user