summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2011-03-12 06:43:28 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 16:38:12 -0300
commit2f82441a8644287e5b647329cc30b590f6fd3714 (patch)
tree63795d3ea4a1449b6dbbd84fa0c6465798bc58a7 /Documentation
parent6aff72f6d511bcadbc71358ed17bc87edbf90716 (diff)
downloadop-kernel-dev-2f82441a8644287e5b647329cc30b590f6fd3714.zip
op-kernel-dev-2f82441a8644287e5b647329cc30b590f6fd3714.tar.gz
[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 'Documentation')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud