diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-07-13 06:13:47 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-08-19 02:22:45 -0400 |
commit | 8a20974f0370fe1b924704399e7ba327d894ef72 (patch) | |
tree | f06a04d8807beed632131f0437e050ae3b052ec2 | |
parent | d86d29df57adf9258f56939e59cdd70932845885 (diff) |
fbdev: sh_mobile_meram: Remove unneeded sh_mobile_meram.h
The drivers/video/sh_mobile_meram.h header contains unused definitions
and declarations. Move the only used macro to sh_mobile_meram.c, and
remove the header.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 2 | ||||
-rw-r--r-- | drivers/video/sh_mobile_meram.c | 5 | ||||
-rw-r--r-- | drivers/video/sh_mobile_meram.h | 33 |
3 files changed, 4 insertions, 36 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index 0b7b49265a1a..088cb17857e3 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c | |||
@@ -24,10 +24,10 @@ | |||
24 | #include <linux/backlight.h> | 24 | #include <linux/backlight.h> |
25 | #include <linux/gpio.h> | 25 | #include <linux/gpio.h> |
26 | #include <video/sh_mobile_lcdc.h> | 26 | #include <video/sh_mobile_lcdc.h> |
27 | #include <video/sh_mobile_meram.h> | ||
27 | #include <linux/atomic.h> | 28 | #include <linux/atomic.h> |
28 | 29 | ||
29 | #include "sh_mobile_lcdcfb.h" | 30 | #include "sh_mobile_lcdcfb.h" |
30 | #include "sh_mobile_meram.h" | ||
31 | 31 | ||
32 | #define SIDE_B_OFFSET 0x1000 | 32 | #define SIDE_B_OFFSET 0x1000 |
33 | #define MIRROR_OFFSET 0x2000 | 33 | #define MIRROR_OFFSET 0x2000 |
diff --git a/drivers/video/sh_mobile_meram.c b/drivers/video/sh_mobile_meram.c index 7ba6dce459b2..f63297099193 100644 --- a/drivers/video/sh_mobile_meram.c +++ b/drivers/video/sh_mobile_meram.c | |||
@@ -16,8 +16,7 @@ | |||
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | #include <linux/slab.h> | 17 | #include <linux/slab.h> |
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | 19 | #include <video/sh_mobile_meram.h> | |
20 | #include "sh_mobile_meram.h" | ||
21 | 20 | ||
22 | /* meram registers */ | 21 | /* meram registers */ |
23 | #define MEVCR1 0x4 | 22 | #define MEVCR1 0x4 |
@@ -82,6 +81,8 @@ | |||
82 | ((yszm1) << MExxBSIZE_YSZM1_SHIFT) | \ | 81 | ((yszm1) << MExxBSIZE_YSZM1_SHIFT) | \ |
83 | ((xszm1) << MExxBSIZE_XSZM1_SHIFT)) | 82 | ((xszm1) << MExxBSIZE_XSZM1_SHIFT)) |
84 | 83 | ||
84 | #define SH_MOBILE_MERAM_ICB_NUM 32 | ||
85 | |||
85 | static unsigned long common_regs[] = { | 86 | static unsigned long common_regs[] = { |
86 | MEVCR1, | 87 | MEVCR1, |
87 | MEQSEL1, | 88 | MEQSEL1, |
diff --git a/drivers/video/sh_mobile_meram.h b/drivers/video/sh_mobile_meram.h deleted file mode 100644 index 1615204b14de..000000000000 --- a/drivers/video/sh_mobile_meram.h +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | #ifndef __sh_mobile_meram_h__ | ||
2 | #define __sh_mobile_meram_h__ | ||
3 | |||
4 | #include <linux/mutex.h> | ||
5 | #include <video/sh_mobile_meram.h> | ||
6 | |||
7 | /* | ||
8 | * MERAM private | ||
9 | */ | ||
10 | |||
11 | #define MERAM_ICB_Y 0x1 | ||
12 | #define MERAM_ICB_C 0x2 | ||
13 | |||
14 | /* MERAM cache size */ | ||
15 | #define SH_MOBILE_MERAM_ICB_NUM 32 | ||
16 | |||
17 | #define SH_MOBILE_MERAM_CACHE_OFFSET(p) ((p) >> 16) | ||
18 | #define SH_MOBILE_MERAM_CACHE_SIZE(p) ((p) & 0xffff) | ||
19 | |||
20 | int sh_mobile_meram_alloc_icb(const struct sh_mobile_meram_cfg *cfg, | ||
21 | int xres, | ||
22 | int yres, | ||
23 | unsigned int base_addr, | ||
24 | int yuv_mode, | ||
25 | int *marker_icb, | ||
26 | int *out_pitch); | ||
27 | |||
28 | void sh_mobile_meram_free_icb(int marker_icb); | ||
29 | |||
30 | #define SH_MOBILE_MERAM_START(ind, ab) \ | ||
31 | (0xC0000000 | ((ab & 0x1) << 23) | ((ind & 0x1F) << 24)) | ||
32 | |||
33 | #endif /* !__sh_mobile_meram_h__ */ | ||