git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
917ba6b
)
[media] em28xx-v4l: simplify em28xx_v4l2_open() by using v4l2_fh_open()
author
Frank Schaefer
<fschaefer.oss@googlemail.com>
Fri, 25 Jul 2014 17:48:57 +0000
(14:48 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Sat, 26 Jul 2014 19:44:30 +0000
(16:44 -0300)
Instead of calling
...
struct v4l2_fh *fh = kzalloc(sizeof(*fh), GFP_KERNEL);
filp->private_data = fh;
v4l2_fh_init(fh, vdev);
v4l2_fh_add(fh);
...
simply use function v4l2_fh_open() which does all of these calls for us.
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
No differences found