]> git.baikalelectronics.ru Git - kernel.git/commit
m68knommu: introduce macros to simplify ColdFire GPIO table initialization
authorGreg Ungerer <gerg@uclinux.org>
Mon, 16 Apr 2012 05:59:29 +0000 (15:59 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Sun, 20 May 2012 11:21:35 +0000 (21:21 +1000)
commitf269e14532c81e80051c29fa188af070ed2d309d
tree462f4d72a6bbedcdb52e633b0ff28af4840cb794
parent091483fc698578eb92c4117eed784530573e2c02
m68knommu: introduce macros to simplify ColdFire GPIO table initialization

We have very large tables in the ColdFire CPU GPIO setup code that essentially
boil down to 2 distinct types of GPIO pin initiaization. Using 2 macros we can
reduce these large tables to at most a dozen lines of setup code, and in quite
a few cases a single table entry.

Introduce these 2 macros into the existing mcfgpio.h header.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Steven King <sfking@fdwdc.com>
arch/m68k/include/asm/mcfgpio.h