From: Uwe Kleine-König Date: Tue, 26 Jul 2011 00:13:00 +0000 (-0700) Subject: include/linux/ioport.h: new helper to define common struct resource constructs X-Git-Tag: v3.1-rc1~241^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e44d4a7a3935afe425ec8dd1a5b63895e1f9c3;p=pandora-kernel.git 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 Cc: Arnd Bergmann Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed