From: Hans Verkuil Date: Fri, 17 Jan 2014 11:25:26 +0000 (-0300) Subject: [media] v4l2-ctrls: compare values only once X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~357 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ea1b7a4b66fddfab9e65e243b72d18371f8d9a5;p=pandora-kernel.git [media] v4l2-ctrls: compare values only once When setting a control the control's new value is compared to the current value twice: once by new_to_cur(), once by cluster_changed(). Not a big deal when dealing with simple values, but it can be a problem when dealing with compound types or arrays. So fix this: cluster_changed() sets the has_changed flag, which is used by new_to_cur() instead of having to do another compare. Signed-off-by: Hans Verkuil Reviewed-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed