Skip to contentSkip to conversation

sanyo decoder: address was being truncated

PATCH New Sean Young 1 participant 1 message Nov 9, 2016

Subsystems (2)
lore
Share & tools
lore

Sean Young

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/media/rc/ir-sanyo-decoder.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/media/rc/ir-sanyo-decoder.c +2 -1
index 7331e5e7..b07d9ca 100644
@@ -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) {
Signature · 1 line
2.7.4