mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
media: v4l2-mem2mem: Fix outdated documentation
Commitcbd9463da1("media: v4l2-mem2mem: Avoid calling .device_run in v4l2_m2m_job_finish") deferred calls to .device_run() to a work queue to avoid recursive calls when a job is finished right away from .device_run(). It failed to update the v4l2_m2m_job_finish() documentation that still states the function must not be called from .device_run(). Fix it. Fixes:cbd9463da1("media: v4l2-mem2mem: Avoid calling .device_run in v4l2_m2m_job_finish") Cc: stable@vger.kernel.org Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
c43bcd2b2a
commit
082b86919b
@@ -192,8 +192,7 @@ void v4l2_m2m_try_schedule(struct v4l2_m2m_ctx *m2m_ctx);
|
||||
* other instances to take control of the device.
|
||||
*
|
||||
* This function has to be called only after &v4l2_m2m_ops->device_run
|
||||
* callback has been called on the driver. To prevent recursion, it should
|
||||
* not be called directly from the &v4l2_m2m_ops->device_run callback though.
|
||||
* callback has been called on the driver.
|
||||
*/
|
||||
void v4l2_m2m_job_finish(struct v4l2_m2m_dev *m2m_dev,
|
||||
struct v4l2_m2m_ctx *m2m_ctx);
|
||||
|
||||
Reference in New Issue
Block a user