Commit e56af866 authored by Philipp Zabel's avatar Philipp Zabel Committed by Greg Kroah-Hartman

staging: drm/imx: make struct ipu_rgb format definitions const

Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a2210d57
...@@ -283,7 +283,7 @@ int ipu_cpmem_set_format_passthrough(struct ipu_ch_param __iomem *p, ...@@ -283,7 +283,7 @@ int ipu_cpmem_set_format_passthrough(struct ipu_ch_param __iomem *p,
int width); int width);
int ipu_cpmem_set_format_rgb(struct ipu_ch_param __iomem *, int ipu_cpmem_set_format_rgb(struct ipu_ch_param __iomem *,
struct ipu_rgb *rgb); const struct ipu_rgb *rgb);
static inline void ipu_cpmem_interlaced_scan(struct ipu_ch_param *p, static inline void ipu_cpmem_interlaced_scan(struct ipu_ch_param *p,
int stride) int stride)
......
...@@ -139,7 +139,7 @@ u32 ipu_ch_param_read_field(struct ipu_ch_param __iomem *base, u32 wbs) ...@@ -139,7 +139,7 @@ u32 ipu_ch_param_read_field(struct ipu_ch_param __iomem *base, u32 wbs)
EXPORT_SYMBOL_GPL(ipu_ch_param_read_field); EXPORT_SYMBOL_GPL(ipu_ch_param_read_field);
int ipu_cpmem_set_format_rgb(struct ipu_ch_param __iomem *p, int ipu_cpmem_set_format_rgb(struct ipu_ch_param __iomem *p,
struct ipu_rgb *rgb) const struct ipu_rgb *rgb)
{ {
int bpp = 0, npb = 0, ro, go, bo, to; int bpp = 0, npb = 0, ro, go, bo, to;
...@@ -282,7 +282,7 @@ void ipu_cpmem_set_yuv_planar(struct ipu_ch_param __iomem *p, u32 pixel_format, ...@@ -282,7 +282,7 @@ void ipu_cpmem_set_yuv_planar(struct ipu_ch_param __iomem *p, u32 pixel_format,
} }
EXPORT_SYMBOL_GPL(ipu_cpmem_set_yuv_planar); EXPORT_SYMBOL_GPL(ipu_cpmem_set_yuv_planar);
static struct ipu_rgb def_rgb_32 = { static const struct ipu_rgb def_rgb_32 = {
.red = { .offset = 16, .length = 8, }, .red = { .offset = 16, .length = 8, },
.green = { .offset = 8, .length = 8, }, .green = { .offset = 8, .length = 8, },
.blue = { .offset = 0, .length = 8, }, .blue = { .offset = 0, .length = 8, },
...@@ -290,7 +290,7 @@ static struct ipu_rgb def_rgb_32 = { ...@@ -290,7 +290,7 @@ static struct ipu_rgb def_rgb_32 = {
.bits_per_pixel = 32, .bits_per_pixel = 32,
}; };
static struct ipu_rgb def_bgr_32 = { static const struct ipu_rgb def_bgr_32 = {
.red = { .offset = 16, .length = 8, }, .red = { .offset = 16, .length = 8, },
.green = { .offset = 8, .length = 8, }, .green = { .offset = 8, .length = 8, },
.blue = { .offset = 0, .length = 8, }, .blue = { .offset = 0, .length = 8, },
...@@ -298,7 +298,7 @@ static struct ipu_rgb def_bgr_32 = { ...@@ -298,7 +298,7 @@ static struct ipu_rgb def_bgr_32 = {
.bits_per_pixel = 32, .bits_per_pixel = 32,
}; };
static struct ipu_rgb def_rgb_24 = { static const struct ipu_rgb def_rgb_24 = {
.red = { .offset = 0, .length = 8, }, .red = { .offset = 0, .length = 8, },
.green = { .offset = 8, .length = 8, }, .green = { .offset = 8, .length = 8, },
.blue = { .offset = 16, .length = 8, }, .blue = { .offset = 16, .length = 8, },
...@@ -306,7 +306,7 @@ static struct ipu_rgb def_rgb_24 = { ...@@ -306,7 +306,7 @@ static struct ipu_rgb def_rgb_24 = {
.bits_per_pixel = 24, .bits_per_pixel = 24,
}; };
static struct ipu_rgb def_bgr_24 = { static const struct ipu_rgb def_bgr_24 = {
.red = { .offset = 16, .length = 8, }, .red = { .offset = 16, .length = 8, },
.green = { .offset = 8, .length = 8, }, .green = { .offset = 8, .length = 8, },
.blue = { .offset = 0, .length = 8, }, .blue = { .offset = 0, .length = 8, },
...@@ -314,7 +314,7 @@ static struct ipu_rgb def_bgr_24 = { ...@@ -314,7 +314,7 @@ static struct ipu_rgb def_bgr_24 = {
.bits_per_pixel = 24, .bits_per_pixel = 24,
}; };
static struct ipu_rgb def_rgb_16 = { static const struct ipu_rgb def_rgb_16 = {
.red = { .offset = 11, .length = 5, }, .red = { .offset = 11, .length = 5, },
.green = { .offset = 5, .length = 6, }, .green = { .offset = 5, .length = 6, },
.blue = { .offset = 0, .length = 5, }, .blue = { .offset = 0, .length = 5, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment