Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM

Alan Cox
2012-08-07T15:41:49Z

> #define IORESOURCE_TYPE_BITS 0x00001f00 /* Resource type */
> #define IORESOURCE_IO 0x00000100
> #define IORESOURCE_MEM 0x00000200
> +#define IORESOURCE_FOO 0x00000300

These are bit masks and checked as such in many places. This makes no
sense at all.

Moving to IO_RESOURCE_TYPE() being 0-31 values might be smart but its a
massive all kernel change.

Alan