flexcan: Abstract off read/write for big/little endian.
authorholt@sgi.com <holt@sgi.com>
Tue, 16 Aug 2011 17:32:20 +0000 (17:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Aug 2011 03:36:38 +0000 (20:36 -0700)
commit61e271ee64f1da6f69e56419ecf2ca7330884564
treea6490f207c0485c55f6f7942fde8a013a733229b
parent12732c308340ad786d540b3a85f7b164189f2108
flexcan: Abstract off read/write for big/little endian.

Make flexcan driver handle register reads in the appropriate endianess.
This was a basic search and replace and then define some inlines.

Signed-off-by: Robin Holt <holt@sgi.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Cc: U Bhaskar-B22300 <B22300@freescale.com>
Cc: socketcan-core@lists.berlios.de
Cc: netdev@vger.kernel.org
Cc: PPC list <linuxppc-dev@lists.ozlabs.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/flexcan.c