V4L/DVB (11367): v4l2-common: remove legacy code
[deliverable/linux.git] / Documentation / video4linux / v4l2-framework.txt
index 4b54c629bc569356f96f476d6dd6a7bb5e37a753..c9ae70a37a6c10cc75e060ed420ed64f90a7b2b3 100644 (file)
@@ -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.
This page took 0.026537 seconds and 5 git commands to generate.