commit | 2f82441a8644287e5b647329cc30b590f6fd3714 | [log] [tgz] |
---|---|---|
author | Hans Verkuil <hverkuil@xs4all.nl> | Sat Mar 12 06:43:28 2011 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Tue Mar 22 16:38:12 2011 -0300 |
tree | 63795d3ea4a1449b6dbbd84fa0c6465798bc58a7 | |
parent | 6aff72f6d511bcadbc71358ed17bc87edbf90716 [diff] |
[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>