diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-02-10 01:46:25 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 11:18:06 -0800 |
commit | b385a144ee790f00e8559bcb8024d042863f9be1 (patch) | |
tree | c2f2df78805fe8eff006716cee7b8fa8010d3b62 /drivers/video | |
parent | 521dae191e5ba9362152da9fd3a12203e087df83 (diff) | |
download | kernel_samsung_aries-b385a144ee790f00e8559bcb8024d042863f9be1.zip kernel_samsung_aries-b385a144ee790f00e8559bcb8024d042863f9be1.tar.gz kernel_samsung_aries-b385a144ee790f00e8559bcb8024d042863f9be1.tar.bz2 |
[PATCH] Replace regular code with appropriate calls to container_of()
Replace a small number of expressions with a call to the "container_of()"
macro.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/sa1100fb.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/sa1100fb.h b/drivers/video/sa1100fb.h index 0b07f6a..48066ef 100644 --- a/drivers/video/sa1100fb.h +++ b/drivers/video/sa1100fb.h @@ -110,9 +110,7 @@ struct sa1100fb_info { #endif }; -#define __type_entry(ptr,type,member) ((type *)((char *)(ptr)-offsetof(type,member))) - -#define TO_INF(ptr,member) __type_entry(ptr,struct sa1100fb_info,member) +#define TO_INF(ptr,member) container_of(ptr,struct sa1100fb_info,member) #define SA1100_PALETTE_MODE_VAL(bpp) (((bpp) & 0x018) << 9) |