diff options
author | 2014-07-25 14:48:57 -0300 | |
---|---|---|
committer | 2014-07-26 16:44:30 -0300 | |
commit | 3c0f90e14caf97896cd347b3b9fec8cba6b56b14 (patch) | |
tree | da3ec7bbf7e9dddae622b0de0428bb867d0f4e58 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | [media] em28xx-v4l: get rid of struct em28xx_fh (diff) | |
download | linux-dev-3c0f90e14caf97896cd347b3b9fec8cba6b56b14.tar.xz linux-dev-3c0f90e14caf97896cd347b3b9fec8cba6b56b14.zip |
[media] em28xx-v4l: simplify em28xx_v4l2_open() by using v4l2_fh_open()
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions