8000 set v4l2_loopback_device addr as video_device drvdata instead · v4l2loopback/v4l2loopback@b422661 · GitHub
[go: up one dir, main page]

Skip to content

Commit b422661

Browse files
committed
set v4l2_loopback_device addr as video_device drvdata instead
Converting function v4l2loopback_cd2dev and v4l2loopback_getdevice searches v4l2loopback_index_idr with device number retrieved from video_device drvdata, but this could be time consuming and creates unecessary complexity. And since we may need to retrieve v4l2_loopback_device address from callbacks shared between capture and output devices, this patch reuses video_device drvdata instead of struct member offsets. Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
1 parent d26166e commit b422661

File tree

1 file changed

+40
-77
lines changed

1 file changed

+40
-77
lines changed

0 commit comments

Comments
 (0)
0