]> git.baikalelectronics.ru Git - kernel.git/commit
include/linux/ioport.h: new helper to define common struct resource constructs
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 26 Jul 2011 00:13:00 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:14 +0000 (20:57 -0700)
commit29675bb9817683cee0ac034ff44834227f5d3971
treeef31b7fe165d9777e93beacb191adbef280c21b6
parentfee602ed7e20e69e3e5e17f7b99f0c8979100096
include/linux/ioport.h: new helper to define common struct resource constructs

Resource definitions that just define start, end and flags =
IORESOURCE_MEM or IORESOURCE_IRQ (with start=end) are quite common.  So
introduce a shortcut for them.  For completeness add macros for
IORESOURCE_DMA and IORESOURCE_IO, too and also make available a set of
macros to specify named resources of all types which are less common.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/ioport.h