diff options
author | 2019-05-24 03:55:45 +0100 | |
---|---|---|
committer | 2019-06-19 11:42:17 +0100 | |
commit | 420810cec63bfd15069de1681605f137a8886d25 (patch) | |
tree | f55a3e34c5809bdb719e2e0b591676b21b1d7798 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/komeda: Add slave pipeline support (diff) | |
download | linux-rng-420810cec63bfd15069de1681605f137a8886d25.tar.xz linux-rng-420810cec63bfd15069de1681605f137a8886d25.zip |
drm/komeda: Refine function to_d71_input_id
Since the component_state->input[i] is only valid when it is active, the
content of input[i] is undefined if it is inactive. The user must check the
state->active_inputs with input index firstly before using state->input[i].
Refine the function to_d71_input_id and directly move such check into it.
Simplify the using and avoid problem that caller forget the valid check.
Depends on:
- https://patchwork.freedesktop.org/series/60856/
Signed-off-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions