]> git.baikalelectronics.ru Git - kernel.git/commit
resource: add resource_type() and IORESOURCE_TYPE_BITS
authorMagnus Damm <damm@igel.co.jp>
Thu, 16 Oct 2008 05:05:15 +0000 (22:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:51 +0000 (11:21 -0700)
commit01399a8966023e1dff5db99aaca64f54c5cb54ea
treeb96efd22193122874196c4809b94069f8e46cb34
parentde22c83f18ec8271b5dacfcaa8fc8a374354dcff
resource: add resource_type() and IORESOURCE_TYPE_BITS

Add resource_type() and IORESOURCE_TYPE_BITS.  They make it easier to add
more resource types without having to rewrite tons of code.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/platform.c
include/linux/ioport.h