lkml.org 
[lkml]   [2012]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM
>  #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


\
 
 \ /
  Last update: 2012-08-07 18:21    [W:0.070 / U:0.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site