bcm27xx: 6.1: add kernel patches
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-6.1 / 950-0248-media-bcm2835-unicam-Avoid-gcc-warning-over-0-on-end.patch
1 From f64b2674da1aa8d92ca6021a52faec4db4851ffb Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 26 Jun 2020 15:53:44 +0100
4 Subject: [PATCH] media: bcm2835-unicam: Avoid gcc warning over {0} on
5 endpoint
6
7 Older gcc versions object to = { 0 } initialisation if the first
8 elemtn in the structure is a substructure.
9
10 Use = { } to avoid this compiler warning.
11
12 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 ---
14 drivers/media/platform/bcm2835/bcm2835-unicam.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
18 +++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
19 @@ -2588,7 +2588,7 @@ static const struct v4l2_async_notifier_
20 static int of_unicam_connect_subdevs(struct unicam_device *dev)
21 {
22 struct platform_device *pdev = dev->pdev;
23 - struct v4l2_fwnode_endpoint ep = { 0 };
24 + struct v4l2_fwnode_endpoint ep = { };
25 struct device_node *ep_node;
26 struct device_node *sensor_node;
27 unsigned int lane;