Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52372ccb authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: ch341: use le16_to_cpup to be explicit about endianess

parent f2b5cc83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -422,7 +422,7 @@ static void ch341_break_ctl(struct tty_struct *tty, int break_state)
	}
	dbg("%s - New ch341 break register contents - reg1: %x, reg2: %x",
			__func__, break_reg[0], break_reg[1]);
	reg_contents = (uint16_t)break_reg[0] | ((uint16_t)break_reg[1] << 8);
	reg_contents = le16_to_cpup((uint16_t *)break_reg);
	r = ch341_control_out(port->serial->dev, CH341_REQ_WRITE_REG,
			ch341_break_reg, reg_contents);
	if (r < 0)