[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120807164555.07c689e1@pyramind.ukuu.org.uk>
Date: Tue, 7 Aug 2012 16:45:55 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Russell King <rmk@....linux.org.uk>
Cc: Mark Brown <broonie@...nsource.wolfsonmicro.com>,
Arnd Bergmann <arnd@...db.de>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Haojian Zhuang <haojian.zhuang@...il.com>,
sameo@...ux.intel.com, rpurdie@...ys.net, bryan.wu@...onical.com,
linux-kernel@...r.kernel.org
Subject: Re: [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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists