can: bfin_can: auto-calculate accessor sizes
authorMike Frysinger <vapier@gentoo.org>
Fri, 24 Jun 2011 04:33:02 +0000 (04:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2011 03:42:24 +0000 (20:42 -0700)
commitcfbf7586bc07cd6d14cd93ca56d8a3f90e248625
tree16418209e4bea1c9c54ada013867f46f3d6295e6
parent9118f08a7794e9a4908afbb0f9bc9455325a5631
can: bfin_can: auto-calculate accessor sizes

Since we have a struct that defines the sizes of the registers, we don't
need to explicitly use the 16bit read/write helpers.  Let the code figure
out which size access to make based on the size of the C type.

There should be no functional changes here.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/bfin_can.c