diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-04-01 08:41:09 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-04-01 08:41:09 +0200 |
commit | a022c34c8938f0c3a97840b5b3ceffa0ef41f775 (patch) | |
tree | 67327868f25d34bc8c72a55f6c7c95a65a98c15b /linux/Documentation/video4linux/v4l2-framework.txt | |
parent | 2da0185910448adfcfc41ac3c7749cd9f8f8344c (diff) | |
download | mediapointer-dvb-s2-a022c34c8938f0c3a97840b5b3ceffa0ef41f775.tar.gz mediapointer-dvb-s2-a022c34c8938f0c3a97840b5b3ceffa0ef41f775.tar.bz2 |
v4l2-common: remove legacy code
From: Hans Verkuil <hverkuil@xs4all.nl>
Now that all drivers are converted to v4l2_subdev we can remove legacy code
in v4l2-common. Also move the documentation of the internal API to
v4l2-subdev.h where it really belongs.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/Documentation/video4linux/v4l2-framework.txt')
-rw-r--r-- | linux/Documentation/video4linux/v4l2-framework.txt | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/linux/Documentation/video4linux/v4l2-framework.txt b/linux/Documentation/video4linux/v4l2-framework.txt index a31177390..2a7ffda49 100644 --- a/linux/Documentation/video4linux/v4l2-framework.txt +++ b/linux/Documentation/video4linux/v4l2-framework.txt @@ -351,17 +351,6 @@ And this to go from an i2c_client to a v4l2_subdev struct: struct v4l2_subdev *sd = i2c_get_clientdata(client); -Finally you need to make a command function to make driver->command() -call the right subdev_ops functions: - -static int subdev_command(struct i2c_client *client, unsigned cmd, void *arg) -{ - return v4l2_subdev_command(i2c_get_clientdata(client), cmd, arg); -} - -If driver->command is never used then you can leave this out. Eventually the -driver->command usage should be removed from v4l. - Make sure to call v4l2_device_unregister_subdev(sd) when the remove() callback is called. This will unregister the sub-device from the bridge driver. It is safe to call this even if the sub-device was never registered. |