mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
[media] sanyo decoder: address was being truncated
The address is 13 bits but it was stuffed in an u8, so 5 bits are missing from the scancode. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
a56bc17159
commit
2bfc04d64d
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev)
|
|||
{
|
||||
struct sanyo_dec *data = &dev->raw->sanyo;
|
||||
u32 scancode;
|
||||
u8 address, command, not_command;
|
||||
u16 address;
|
||||
u8 command, not_command;
|
||||
|
||||
if (!is_timing_event(ev)) {
|
||||
if (ev.reset) {
|
||||
|
|
Loading…
Reference in a new issue