diff options
Diffstat (limited to 'drivers/video/sa1100fb.h')
-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 0b07f6ae3367..48066ef3af05 100644 --- a/drivers/video/sa1100fb.h +++ b/drivers/video/sa1100fb.h | |||
@@ -110,9 +110,7 @@ struct sa1100fb_info { | |||
110 | #endif | 110 | #endif |
111 | }; | 111 | }; |
112 | 112 | ||
113 | #define __type_entry(ptr,type,member) ((type *)((char *)(ptr)-offsetof(type,member))) | 113 | #define TO_INF(ptr,member) container_of(ptr,struct sa1100fb_info,member) |
114 | |||
115 | #define TO_INF(ptr,member) __type_entry(ptr,struct sa1100fb_info,member) | ||
116 | 114 | ||
117 | #define SA1100_PALETTE_MODE_VAL(bpp) (((bpp) & 0x018) << 9) | 115 | #define SA1100_PALETTE_MODE_VAL(bpp) (((bpp) & 0x018) << 9) |
118 | 116 | ||