[U-Boot] [PATCH] usb.h: use standard __LITTLE_ENDIAN from Linux headers

Mike Frysinger vapier at gentoo.org
Fri Jan 2 00:23:46 CET 2009


On Thursday 01 January 2009 05:22:46 Remy Bohmer wrote:
> 2009/1/1 Mike Frysinger <vapier at gentoo.org>:
> > Rather than forcing people to define a custom "LITTLEENDIAN", just use
> > the __LITTLE_ENDIAN one from the Linux byteorder headers that every arch
> > is already setting up.
> >  common/usb_storage.c |    2 --
> >  include/usb.h        |    4 ++--
> >  2 files changed, 2 insertions(+), 4 deletions(-)
> >
> > diff --git a/common/usb_storage.c b/common/usb_storage.c
> > index 94f659f..bb468aa 100644
> > --- a/common/usb_storage.c
> > +++ b/common/usb_storage.c
> > @@ -45,8 +45,6 @@
> >  * New Note:
> >  * Support for USB Mass Storage Devices (BBB) has been added. It has
> >  * only been tested with USB memory sticks.
> > - * Nota bene: if you are using the BBB support with a little-endian
> > - * CPU then you MUST define LITTLEENDIAN in the configuration file!
> >  */
>
> There are a few more C-files (*usb_ohci.c) that has this comment,
> please remove them all.
> Also clean up the config files that has this flag set. This flag seem
> to be set only for this reason.

i was avoiding touching non-common code as i dont have the hardware to test.  
but easy enough to change.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090101/8a077fae/attachment.pgp 


More information about the U-Boot mailing list