aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2019-07-17 05:24:13 -0400
committerMauro Carvalho Chehab <[email protected]>2019-07-23 11:47:09 -0400
commit2dbcb6fb96f5faca146279d5fc8a3c7b803b25cb (patch)
tree2440c06e66e8638b0cbd1240c5cff3ab905f8c85 /tools/perf/scripts/python/netdev-times.py
parent596a5a58e89a4bfe0d8a275ab552de990b18f0ac (diff)
media: media/i2c: don't return ENOTTY if SUBDEV_API is not set
If CONFIG_VIDEO_V4L2_SUBDEV_API is not set, then it is still possible to call set_fmt for V4L2_SUBDEV_FORMAT_TRY, the result is just not stored. So return 0 instead of -ENOTTY. Calling get_fmt with V4L2_SUBDEV_FORMAT_TRY should return -EINVAL instead of -ENOTTY, after all the get_fmt functionality is still present, just not supported for TRY. Signed-off-by: Hans Verkuil <[email protected]> Acked-by: Lad, Prabhakar <[email protected]> Acked-by: Rui Miguel Silva <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions