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)
commite9174a6438adada772abdb16901280289aa4c3b2
tree4cb19fae0ec4b955b34acae943590d61c112379c
parent12350633a8dbdcf7d8e0b1f726a4b58aa21e25db
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