]> git.baikalelectronics.ru Git - kernel.git/commit
can: c_can: Move overlay structure to array with offset as index
authorAnilKumar Ch <anilkumar@ti.com>
Tue, 29 May 2012 05:43:15 +0000 (11:13 +0530)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 7 Jun 2012 08:02:24 +0000 (10:02 +0200)
commit74f20c4df6e645da183dc1b92fef76696af0631a
tree8b28fd02dbe9c9ae460262a09b90ac3a80d4314a
parentfd1dbf95a4cd25a4b41f3aa8cb213e4810eff7c3
can: c_can: Move overlay structure to array with offset as index

c_can uses overlay structure for accessing c_can module registers.
With this kind of implementation it is difficult to add one more ip
which is similar to c_can in functionality but different register
offsets.

This patch changes the overlay structure implementation to an array
with register offset as index. This way we can overcome the above
limitation.

Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c
drivers/net/can/c_can/c_can.h
drivers/net/can/c_can/c_can_platform.c