]> git.baikalelectronics.ru Git - kernel.git/commit
can: sja1000 platform data fixes
authorWolfgang Grandegger <wg@grandegger.com>
Tue, 18 May 2010 05:39:48 +0000 (22:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 05:39:48 +0000 (22:39 -0700)
commitc8cdcecd8984c2c4ff735c498c4445ba3c2bf977
tree3b37d2e1382a666152b7c655a67b4f7b785c142f
parent3be1c1782e863186396451ace377cff969edfe9e
can: sja1000 platform data fixes

The member "clock" of struct "sja1000_platform_data" is documented as
"CAN bus oscillator frequency in Hz" but it's actually used as the CAN
clock frequency, which is half of it. To avoid further confusion, this
patch fixes it by renaming the member to "osc_freq". That way, also
non mainline users will notice the change. The platform code for the
relevant boards is updated accordingly. Furthermore, pre-defined
values are now used for the members "ocr" and "cdr".

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/mach-mx2/pcm970-baseboard.c
arch/arm/mach-mx3/mach-pcm037.c
drivers/net/can/sja1000/sja1000_platform.c
include/linux/can/platform/sja1000.h