Re: [Uclinux-dist-devel] [PATCH 1/2] usb/host: SL811: fix unaligned accesses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 21 Dec 2009, Mike Frysinger wrote:

> > How about using put_unaligned_le32() instead?  Then the casts wouldn't
> > be needed.
> 
> i guess it takes care of the cpu_to_le32 too so we'd only have to do:
> put_unaligned_le32(0, buf);
> put_unaligned_le32(sl811->port1, buf);

Right.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux