]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb74d569db1f229fac2e28f0d4db12cd46ff68418
tree16418209e4bea1c9c54ada013867f46f3d6295e6
parent50e7cd49aef8d49b26c187ab6a3713aa526d9830
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