summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2026-03-19 01:59:04 +0200
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-03-25 10:25:49 +0100
commit1b5db4e308443227ed5b97d8e5c287c6fc34eb4b (patch)
tree4831cee597286ea3904d4a6edd5bb9b38f31912a /drivers
parenta7985d28b3b13cd5e23f4271d702a46532f80424 (diff)
downloadlinux-1b5db4e308443227ed5b97d8e5c287c6fc34eb4b.tar.gz
linux-1b5db4e308443227ed5b97d8e5c287c6fc34eb4b.zip
media: renesas: vsp1: histo: Fix size enumeration
The histogram supports size enumeration on the sink pad only, as the source pad outputs a metadata format. The correct error code when enumeration is not supported is -ENOTTY, not -EINVAL. Fix it. Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> # HiHope RZ/G2M Link: https://patch.msgid.link/20260318235907.831556-11-laurent.pinchart+renesas@ideasonboard.com Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/renesas/vsp1/vsp1_histo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/renesas/vsp1/vsp1_histo.c b/drivers/media/platform/renesas/vsp1/vsp1_histo.c
index f97aecb22058..313b9f3ce0f1 100644
--- a/drivers/media/platform/renesas/vsp1/vsp1_histo.c
+++ b/drivers/media/platform/renesas/vsp1/vsp1_histo.c
@@ -183,7 +183,7 @@ static int histo_enum_frame_size(struct v4l2_subdev *subdev,
struct v4l2_subdev_frame_size_enum *fse)
{
if (fse->pad != HISTO_PAD_SINK)
- return -EINVAL;
+ return -ENOTTY;
return vsp1_subdev_enum_frame_size(subdev, sd_state, fse);
}