summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/mt9v032.c
diff options
context:
space:
mode:
authorHans Verkuil2014-01-17 12:25:26 +0100
committerMauro Carvalho Chehab2014-07-17 16:57:16 +0200
commit9ea1b7a4b66fddfab9e65e243b72d18371f8d9a5 (patch)
treefd8a4887e9fafdd171cb734430511e5a67bf2844 /drivers/media/i2c/mt9v032.c
parent[media] v4l2-ctrls: rewrite copy routines to operate on union v4l2_ctrl_ptr (diff)
downloadkernel-qcow2-linux-9ea1b7a4b66fddfab9e65e243b72d18371f8d9a5.tar.gz
kernel-qcow2-linux-9ea1b7a4b66fddfab9e65e243b72d18371f8d9a5.tar.xz
kernel-qcow2-linux-9ea1b7a4b66fddfab9e65e243b72d18371f8d9a5.zip
[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 <hans.verkuil@cisco.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/i2c/mt9v032.c')
0 files changed, 0 insertions, 0 deletions