9d4fc40cbcddcc429a0804756723edfb7c92730d
[openwrt/staging/linusw.git] /
1 From da208ac4f51f643928847eabd81b7422fa6f6536 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 8 Feb 2021 11:48:35 +0000
4 Subject: [PATCH] staging:bcm2835-camera: Fix the cherry-pick of AWB
5 Greyworld
6
7 The cherry-pick of the patch that added the greyworld AWB mode
8 was incomplete. Fix it up.
9
10 Fixes: b3ef481fe243 "staging: bcm2835-camera: Add greyworld AWB mode"
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 drivers/staging/vc04_services/bcm2835-camera/controls.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 --- a/drivers/staging/vc04_services/bcm2835-camera/controls.c
17 +++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c
18 @@ -1056,8 +1056,8 @@ static const struct bm2835_mmal_v4l2_ctr
19 {
20 .id = V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE,
21 .type = MMAL_CONTROL_TYPE_STD_MENU,
22 - .min = ~0x3ff,
23 - .max = V4L2_WHITE_BALANCE_SHADE,
24 + .min = ~0x7ff,
25 + .max = V4L2_WHITE_BALANCE_GREYWORLD,
26 .def = V4L2_WHITE_BALANCE_AUTO,
27 .step = 0,
28 .imenu = NULL,