31567c0fceb87ffb5cbfa5a050c55e198b082468
[openwrt/staging/chunkeey.git] /
1 From 4924b7b5517c9c334cf5faa3c7a29adf9a0c0ba1 Mon Sep 17 00:00:00 2001
2 From: Kieran Bingham <kieran.bingham@ideasonboard.com>
3 Date: Wed, 28 Aug 2019 15:54:19 +0100
4 Subject: [PATCH 787/806] media: bcm2835: unicam: Reduce scope of local
5 function
6
7 unicam_start_rx() is not used outside of the unicam module. Its current
8 definition produces a compiler warning, that no function prototype
9 exists.
10
11 As the function is only used within the local scope of the module,
12 convert it to a static function.
13
14 Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
15 ---
16 drivers/media/platform/bcm2835/bcm2835-unicam.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 --- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
20 +++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
21 @@ -963,7 +963,7 @@ static void unicam_cfg_image_id(struct u
22 }
23 }
24
25 -void unicam_start_rx(struct unicam_device *dev, unsigned long addr)
26 +static void unicam_start_rx(struct unicam_device *dev, unsigned long addr)
27 {
28 struct unicam_cfg *cfg = &dev->cfg;
29 int line_int_freq = dev->v_fmt.fmt.pix.height >> 2;