media: imx214: Fix stop streaming
authorDaniel Gomez <daniel@qtec.com>
Thu, 3 Oct 2019 14:46:24 +0000 (16:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:24 +0000 (11:53 +0100)
commite7fd18c20342f59877755c94e5626cb50e350111
treedd38ec2a8e4cd4221f7cb522dbf9093b195c9537
parent5bf76d566a76b847658b3513af2793eb24612f28
media: imx214: Fix stop streaming

[ Upstream commit eeb76afbe8d91e112396c6281cd020725160f006 ]

Stop video streaming when requested.

When s_stream is called to stop the video streaming, if/else condition calls
start_streaming function instead of the one for stopping it.

Fixes: 436190596241 ("media: imx214: Add imx214 camera sensor driver")
Signed-off-by: Daniel Gomez <daniel@qtec.com>
Signed-off-by: Ricardo Ribalda <ribalda@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/imx214.c