From: Hans Verkuil Date: Sat, 12 Mar 2011 09:43:28 +0000 (-0300) Subject: [media] ivtv: replace ugly casts with a proper container_of X-Git-Tag: v2.6.39-rc1~86^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f82441a8644287e5b647329cc30b590f6fd3714;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed