OSDN Git Service

media: ov5647: Program mode at s_stream(1) time
authorJacopo Mondi <jacopo@jmondi.org>
Thu, 19 Nov 2020 16:19:35 +0000 (17:19 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 15:09:27 +0000 (16:09 +0100)
commitf7a70f9a43a641380c8df40f97561b671ed79926
treec7a2de96f400d967b9cb8257163c7fe6835c4df5
parent2b18cbcf53f4b1f24f758cfee328fb27432c4e19
media: ov5647: Program mode at s_stream(1) time

Rename __sensor_init() function to ov5647_set_mode() as the function
is a regular one and the double underscores prefix shall be removed, and
then move it to program the mode at s_stream(1) time, not at sensor power
up.

Break out from __sensor_init() the stream_off() operation call at sensor
power up to coax the lanes in LP-11 state.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov5647.c