[PATCH] new helper to define common struct resource constructs
From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-07-12 13:30:20
Also in:
lkml
From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-07-12 13:30:20
Also in:
lkml
On Monday 11 July 2011, Uwe Kleine-K?nig wrote:
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. Also make available a macro to specify named resources of both types which are less common. Signed-off-by: Uwe Kleine-K??nig <redacted>
Acked-by: Arnd Bergmann <arnd@arndb.de> What do others think, is this worthwhile? Should we also define macros for IORESOURCE_IO and IORESOURCE_DMA? Arnd