diff options
| author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2026-06-09 21:59:34 +0300 |
|---|---|---|
| committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2026-09-17 12:14:54 +0300 |
| commit | 48d8b2418f55efb7e4c437ab19e8c39ba271656d (patch) | |
| tree | 7189f4a14715933785dc701556d79f2a57d43e27 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | cdc456ee23ae5105c3f776d4d7604c299426d83a (diff) | |
media: v4l2-subdev: Always call get_fmt() if set_fmt() is unavailable
Many drivers implement set_fmt() pad op that simply returns the format
just as get_fmt() would do, usually because the driver only supports a
single one. As a driver should always implement set_fmt() either on its
own or via get_fmt(), call get_fmt() in case set_fmt() isn't implemented
by the driver. This allows removing a fair amount of boilerplate code as
well as ensures that set_fmt() works whenever get_fmt() does.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
