diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2022-11-04 14:24:51 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-11-25 08:45:37 +0000 |
commit | c79f0f15db3c7f2e047f78647a4c2561d9820fc8 (patch) | |
tree | 12a29d2018a7619065d4ba1d5d204575582452b8 /drivers | |
parent | 64114626f181692f3788a6c73eade53ab8498f84 (diff) | |
download | linux-stable-c79f0f15db3c7f2e047f78647a4c2561d9820fc8.tar.gz linux-stable-c79f0f15db3c7f2e047f78647a4c2561d9820fc8.tar.bz2 linux-stable-c79f0f15db3c7f2e047f78647a4c2561d9820fc8.zip |
media: ar0521: Setup controls at s_stream time
Setup all the registered controls at s_stream(1) time instead of
manually configure gains.
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/i2c/ar0521.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ar0521.c b/drivers/media/i2c/ar0521.c index 0ef4acac1bd3..323f583e2029 100644 --- a/drivers/media/i2c/ar0521.c +++ b/drivers/media/i2c/ar0521.c @@ -399,7 +399,7 @@ static int ar0521_set_stream(struct ar0521_dev *sensor, bool on) if (ret) goto err; - ret = ar0521_set_gains(sensor); + ret = __v4l2_ctrl_handler_setup(&sensor->ctrls.handler); if (ret) goto err; |