Sfoglia il codice sorgente

USB: use get_unaligned_* helpers for kl5kusb105 driver

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Harvey Harrison 17 anni fa
parent
commit
bd2c784595
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/usb/serial/kl5kusb105.c

+ 1 - 1
drivers/usb/serial/kl5kusb105.c

@@ -236,7 +236,7 @@ static int klsi_105_get_line_state(struct usb_serial_port *port,
 	if (rc < 0)
 	if (rc < 0)
 		err("Reading line status failed (error = %d)", rc);
 		err("Reading line status failed (error = %d)", rc);
 	else {
 	else {
-		status = le16_to_cpu(get_unaligned((__le16 *)status_buf));
+		status = get_unaligned_le16(status_buf);
 
 
 		info("%s - read status %x %x", __func__,
 		info("%s - read status %x %x", __func__,
 		     status_buf[0], status_buf[1]);
 		     status_buf[0], status_buf[1]);