Commit 9ebf1945 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] cec-funcs.h: fix typo: && should be &

Fix typo where logical AND was used instead of bitwise AND.
Reported-by: default avatarDavid Binderman <linuxdev.baldrick@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 2ab25d35
...@@ -227,7 +227,7 @@ static inline void cec_set_digital_service_id(__u8 *msg, ...@@ -227,7 +227,7 @@ static inline void cec_set_digital_service_id(__u8 *msg,
if (digital->service_id_method == CEC_OP_SERVICE_ID_METHOD_BY_CHANNEL) { if (digital->service_id_method == CEC_OP_SERVICE_ID_METHOD_BY_CHANNEL) {
*msg++ = (digital->channel.channel_number_fmt << 2) | *msg++ = (digital->channel.channel_number_fmt << 2) |
(digital->channel.major >> 8); (digital->channel.major >> 8);
*msg++ = digital->channel.major && 0xff; *msg++ = digital->channel.major & 0xff;
*msg++ = digital->channel.minor >> 8; *msg++ = digital->channel.minor >> 8;
*msg++ = digital->channel.minor & 0xff; *msg++ = digital->channel.minor & 0xff;
*msg++ = 0; *msg++ = 0;
...@@ -1277,7 +1277,7 @@ static inline void cec_msg_user_control_pressed(struct cec_msg *msg, ...@@ -1277,7 +1277,7 @@ static inline void cec_msg_user_control_pressed(struct cec_msg *msg,
msg->len += 4; msg->len += 4;
msg->msg[3] = (ui_cmd->channel_identifier.channel_number_fmt << 2) | msg->msg[3] = (ui_cmd->channel_identifier.channel_number_fmt << 2) |
(ui_cmd->channel_identifier.major >> 8); (ui_cmd->channel_identifier.major >> 8);
msg->msg[4] = ui_cmd->channel_identifier.major && 0xff; msg->msg[4] = ui_cmd->channel_identifier.major & 0xff;
msg->msg[5] = ui_cmd->channel_identifier.minor >> 8; msg->msg[5] = ui_cmd->channel_identifier.minor >> 8;
msg->msg[6] = ui_cmd->channel_identifier.minor & 0xff; msg->msg[6] = ui_cmd->channel_identifier.minor & 0xff;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment