]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp-ov2680: Push the input_lock taking up into ov2680_s_power()
authorHans de Goede <hdegoede@redhat.com>
Sun, 7 Nov 2021 17:15:41 +0000 (17:15 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:54 +0000 (08:11 +0000)
commitee4a1c9680b08aafb4c180d0752c3859d400d174
tree4cb19fae0ec4b955b34acae943590d61c112379c
parenta375d66696dda7eb49f4c38358cbadabb39b9c7e
media: atomisp-ov2680: Push the input_lock taking up into ov2680_s_power()

ov2680_s_power() is the only caller of ov2680_init(), push the input_lock
taking from ov2680_init() up into ov2680_s_power(), this way the new
power_on bool is also protected by it.

Link: https://lore.kernel.org/linux-media/20211107171549.267583-4-hdegoede@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-ov2680.c