From: Priit Laes Date: Fri, 24 Mar 2017 17:28:49 +0200 Subject: [U-Boot] [PATCH 2/2] sunxi: Display: Mark sunxi_rgb2yuv_coef array as const In-Reply-To: <20170324152849.6374-1-plaes@plaes.org> References: <20170324152849.6374-1-plaes@plaes.org> Message-ID: <20170324152849.6374-2-plaes@plaes.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de sunxi_rgb2yuv_coef is readonly and never modified. Signed-off-by: Priit Laes --- drivers/video/sunxi_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/sunxi_display.c b/drivers/video/sunxi_display.c index bcd33dd..a12c4c3 100644 --- a/drivers/video/sunxi_display.c +++ b/drivers/video/sunxi_display.c @@ -457,7 +457,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 -- 2.9.3