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)
commit33f8100977693fa09c2a32b1ca6dbf4d6eabdd0c
tree8b28fd02dbe9c9ae460262a09b90ac3a80d4314a
parentc1864cfb80a64933c221e33fed9611356c031944
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