]> git.baikalelectronics.ru Git - kernel.git/commit
media: rkisp1: params: fix wrong bits settings
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Mon, 1 Mar 2021 17:18:35 +0000 (18:18 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Mar 2021 10:40:29 +0000 (11:40 +0100)
commitbacc5e46bd0b8871790e6ccbbca0790fef2e6855
tree105aae5a29abde0a6443a731d8d659e8d519e623
parent31476dae563d4993ce0f2dc18dd266cd94aada50
media: rkisp1: params: fix wrong bits settings

The histogram mode is set using 'rkisp1_params_set_bits'.
Only the bits of the mode should be the value argument for
that function. Otherwise bits outside the mode mask are
turned on which is not what was intended.

Fixes: 684fa627f473 ("media: staging: rkisp1: add output device for parameters")
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-params.c