summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2026-06-09 21:59:34 +0300
committerSakari Ailus <sakari.ailus@linux.intel.com>2026-09-17 12:14:54 +0300
commit48d8b2418f55efb7e4c437ab19e8c39ba271656d (patch)
tree7189f4a14715933785dc701556d79f2a57d43e27 /tools/perf/scripts/python/bin
parentcdc456ee23ae5105c3f776d4d7604c299426d83a (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/bin')
0 files changed, 0 insertions, 0 deletions