From: Hans Verkuil Date: Sat, 18 Jun 2011 08:13:55 +0000 (-0300) Subject: [media] v4l2-framework.txt: updated v4l2_fh_init documentation X-Git-Tag: next-20110726~49^2~7^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=89907602b818734de2e8503054b48d360f79a6b9;p=karo-tx-linux.git [media] v4l2-framework.txt: updated v4l2_fh_init documentation v4l2_fh_init now returns void instead of int, updated the doc. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4linux/v4l2-framework.txt index cf21f7aae976..312a0e2f9d66 100644 --- a/Documentation/video4linux/v4l2-framework.txt +++ b/Documentation/video4linux/v4l2-framework.txt @@ -817,11 +817,7 @@ int my_open(struct file *file) ... - ret = v4l2_fh_init(&my_fh->fh, vfd); - if (ret) { - kfree(my_fh); - return ret; - } + v4l2_fh_init(&my_fh->fh, vfd); ... @@ -844,7 +840,7 @@ int my_release(struct file *file) Below is a short description of the v4l2_fh functions used: -int v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) +void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) Initialise the file handle. This *MUST* be performed in the driver's v4l2_file_operations->open() handler.