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, 15 Apr 2021 11:23:26 +0000 (13:23 +0200)
commitac746729178bd7c08bb7e5242df92bd01593a732
tree2edac5738ad95cec18d0ae9fb1c1ba3683f8c228
parent147d211cc9b4d753148d1640a1758b25edfbf437
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: bae1155cf579 ("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