brcm2708: update to latest patches from RPi foundation
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0681-staging-bcm2835-codec-Fix-declaration-of-roles.patch
1 From 2d17824e8e5b2b6a6b830b8fe26c71a7d396f760 Mon Sep 17 00:00:00 2001
2 From: Kieran Bingham <kieran.bingham@ideasonboard.com>
3 Date: Wed, 20 Mar 2019 11:42:39 +0000
4 Subject: [PATCH] staging: bcm2835-codec: Fix declaration of roles
5
6 The static role text is declared incorrectly. The static should be
7 first, and the roles should also be constified.
8
9 Convert from "const static char *" to "static const char * const".
10
11 Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
12 ---
13 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
17 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
18 @@ -77,7 +77,7 @@ enum bcm2835_codec_role {
19 ISP,
20 };
21
22 -const static char *roles[] = {
23 +static const char * const roles[] = {
24 "decode",
25 "encode",
26 "isp"