f70dba77c0fb4d3237078ab7278f7c2c4382ea87
[openwrt/openwrt.git] /
1 From 3f8d0137a1fc1cb0333cb99624213fe4622a92b6 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}
5 on 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 @@ -2578,7 +2578,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;