diff options
| author | Akinobu Mita <[email protected]> | 2018-05-06 10:19:26 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-06-28 09:17:15 -0400 |
| commit | 09e620c6af57ecc94411895eec78c5799a6e2a8d (patch) | |
| tree | ced03b96eaa2ed5f148f855fb3cc0d64396cfff8 /tools/perf/scripts/python | |
| parent | 80dc2a49ba040b3ce09c13d5a7be1799bc75a166 (diff) | |
media: ov772x: use v4l2_ctrl to get current control value
The ov772x driver provides three V4L2 controls and the current value of
each control is saved as a variable in the private data structure.
We don't need to keep track of the current value by ourself, if we use
v4l2_ctrl returned from v4l2_ctrl_new_std() instead.
This is a preparatory change to avoid accessing registers under power
saving mode. This simplifies s_ctrl() by making it just return without
saving the current control value in private area when it is called under
power saving mode.
Cc: Jacopo Mondi <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Hans Verkuil <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions