Commit febfe985 authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab

media: ir_toy: assignment to be16 should be of correct type

commit f0c15b36 ("media: ir_toy: prevent device from hanging during
transmit") removed a cpu_to_be16() cast, which causes a sparse warning.

Fixes: f0c15b36 ("media: ir_toy: prevent device from hanging during transmit")
Reported-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 6cb67bea
...@@ -318,7 +318,7 @@ static int irtoy_tx(struct rc_dev *rc, uint *txbuf, uint count) ...@@ -318,7 +318,7 @@ static int irtoy_tx(struct rc_dev *rc, uint *txbuf, uint count)
buf[i] = cpu_to_be16(v); buf[i] = cpu_to_be16(v);
} }
buf[count] = 0xffff; buf[count] = cpu_to_be16(0xffff);
irtoy->tx_buf = buf; irtoy->tx_buf = buf;
irtoy->tx_len = size; irtoy->tx_len = size;
......
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