diff options
| author | Laurent Pinchart <[email protected]> | 2021-02-15 05:26:38 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-03-11 11:59:47 +0100 |
| commit | 8e574216979ec74283262938f1708d40152cc3a6 (patch) | |
| tree | 2dd1f1bdeca0a211cfff19fdf6831f2725f8fd1d /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | b517f562e0389c0653d1ddd1819bf95d0fcc4ff6 (diff) | |
media: imx: capture: Initialize video_device programmatically
Overwriting the whole video_device isn't future-proof as it would
overwrite any field initialized by video_device_alloc(). Furthermore,
the current implementation modifies the global template video_device as
if it were a per-instance structure, which is bad practice. To fix all
this, initialize the video device programmatically in
imx_media_capture_device_init().
Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Rui Miguel Silva <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions