diff options
author | Priit Laes <plaes@plaes.org> | 2018-10-23 20:20:31 +0300 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-10-24 19:32:15 +0300 |
commit | 3d99a0b33a16c9330a5bf5b3f8561f45d0e6ed80 (patch) | |
tree | 7c4e5558ae5ad23ae78cd8220d19b727f783e29c /drivers/video/sunxi | |
parent | df4ad94d053072e71e3c131d4d47d5a84b8d1ecc (diff) | |
download | u-boot-3d99a0b33a16c9330a5bf5b3f8561f45d0e6ed80.tar.xz |
sunxi: display: Mark sunxi_rgb2yuv_coef array as const
sunxi_rgb2yuv_coef is readonly and never modified.
Signed-off-by: Priit Laes <plaes@plaes.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers/video/sunxi')
-rw-r--r-- | drivers/video/sunxi/sunxi_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c index 5c8f88c42f..6dd9bec351 100644 --- a/drivers/video/sunxi/sunxi_display.c +++ b/drivers/video/sunxi/sunxi_display.c @@ -460,7 +460,7 @@ static void sunxi_composer_init(void) setbits_le32(&de_be->mode, SUNXI_DE_BE_MODE_ENABLE); } -static u32 sunxi_rgb2yuv_coef[12] = { +static const u32 sunxi_rgb2yuv_coef[12] = { 0x00000107, 0x00000204, 0x00000064, 0x00000108, 0x00003f69, 0x00003ed6, 0x000001c1, 0x00000808, 0x000001c1, 0x00003e88, 0x00003fb8, 0x00000808 |