summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cpia_usb.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-06-08 00:01:19 -0500
committerMike Isely <isely@pobox.com>2006-06-08 00:01:19 -0500
commitc0e1a168c8871c030502120b0f02fda348e14db7 (patch)
tree33862aa726a22df4a5c1ff3c955eb30c255379a8 /linux/drivers/media/video/cpia_usb.c
parentc9afdbe77a95a51cc16765495700227b3870e4cf (diff)
downloadmediapointer-dvb-s2-c0e1a168c8871c030502120b0f02fda348e14db7.tar.gz
mediapointer-dvb-s2-c0e1a168c8871c030502120b0f02fda348e14db7.tar.bz2
Remove last bits of V4L1 dependant code
From: Mike Isely <isely@pobox.com> With the removal of the V4L1 API, we also lose the functionality provided by the video_get_drvdata() and video_set_drvdata() functions. These functions had made it possible for a driver to stuff a pointer to its own context inside the V4L device handle context - a useful ability. However now that's going away, so the driver is on its own to find its context when called into from a more generic context (e.g. the open() entrypoint). The changes in this patch implement a global context mapping array, an array index back-reference per instance, and a new global mutex to protect the entire thing. The array is indexed by the minor device id of the V4L device inode. All this fun is present to work around what used to be roughly 4 lines of code. Sigh... Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/cpia_usb.c')
0 files changed, 0 insertions, 0 deletions