From: Hans Verkuil Date: Sun, 27 Apr 2014 06:26:30 +0000 (-0300) Subject: [media] v4l2-ctrls: rewrite copy routines to operate on union v4l2_ctrl_ptr X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~358 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=000e4f9a5bcf86fb52914c445ce5634b65e910a2;p=pandora-kernel.git [media] v4l2-ctrls: rewrite copy routines to operate on union v4l2_ctrl_ptr In order to implement array support and (for the future) configuration stores we need to have more generic copy routines that all operate on the v4l2_ctrl_ptr union. So instead of e.g. using ctrl->cur.string it uses ptr.p_char. This makes e.g. cur_to_user generic so it can be used to copy any v4l2_ctrl_ptr value to userspace, not just the (hardcoded) current value. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed