Question: add convenience macros to create struct resource data?
H Hartley Sweeten
hartleys at visionengravers.com
Wed Apr 20 20:54:15 EDT 2011
Hello all,
Does it make sense to introduce a couple convenience macros to ioport.h?
#define MEM_RESOURCE(_start,_size) \
.start = (_start), \
.end = (_start) + (_size) - 1, \
.flags = IORESOURCE_MEM
#define IRQ_RESOURCE(_start) \
.start = (_start), \
.end = (_start), \
.flags = IORESOURCE_IRQ
These could be used all over the tree to reduce the LOC.
Regards,
Hartley
More information about the linux-arm-kernel
mailing list