]> 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)
commit628900d4845cced6299d2677b957b324595edbc7
tree8b28fd02dbe9c9ae460262a09b90ac3a80d4314a
parente0bde07b7b0a098faf3e8be18de79fa42b2a0dc6
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