diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2011-03-12 06:43:28 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 16:38:12 -0300 |
commit | 2f82441a8644287e5b647329cc30b590f6fd3714 (patch) | |
tree | 63795d3ea4a1449b6dbbd84fa0c6465798bc58a7 /include/media | |
parent | 6aff72f6d511bcadbc71358ed17bc87edbf90716 (diff) | |
download | linux-stable-2f82441a8644287e5b647329cc30b590f6fd3714.tar.gz linux-stable-2f82441a8644287e5b647329cc30b590f6fd3714.tar.bz2 linux-stable-2f82441a8644287e5b647329cc30b590f6fd3714.zip |
[media] ivtv: replace ugly casts with a proper container_of
ivtv-ioctl cast the 'void *fh' directly to 'ivtv_open_id *'. This should be
done properly with a contained_of since the 'void *fh' is really a
'struct v4l2_fh *'.
It worked because the v4l2_fh field is also the first field in the ivtv_open_id
struct, but it is not clean code.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions