From: Hans Verkuil Date: Sun, 27 Apr 2014 06:22:17 +0000 (-0300) Subject: [media] v4l2-ctrls: create type_ops X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~359 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0176077a813933a547b7a913377a87d615b7c108;p=pandora-kernel.git [media] v4l2-ctrls: create type_ops Since compound controls can have non-standard types we need to be able to do type-specific checks etc. In order to make that easy type operations are added. There are four operations: - equal: check if two values are equal - init: initialize a value - log: log the value - validate: validate a new value The v4l2_ctrl struct adds p_new and p_cur unions at the end of the struct. This union provides a standard way of accessing control types through a pointer, which greatly simplifies internal control processing. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed