mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
media: staging: atomisp/starfive: use (t,l)/wxh format for rectangle
Standardize reporting of rectangles to (t,l)/wxh. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
6e40cc9b4b
commit
992f05c535
2 changed files with 3 additions and 3 deletions
|
|
@ -3742,8 +3742,8 @@ static int atomisp_set_sensor_crop_and_fmt(struct atomisp_device *isp,
|
|||
|
||||
ret = v4l2_subdev_call(input->camera, pad, set_selection, sd_state, &sel);
|
||||
if (ret)
|
||||
dev_err(isp->dev, "Error setting crop to %ux%u @%ux%u: %d\n",
|
||||
sel.r.width, sel.r.height, sel.r.left, sel.r.top, ret);
|
||||
dev_err(isp->dev, "Error setting crop to (%d,%d)/%ux%u: %d\n",
|
||||
sel.r.left, sel.r.top, sel.r.width, sel.r.height, ret);
|
||||
|
||||
set_fmt:
|
||||
if (ret == 0)
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ static int isp_set_selection(struct v4l2_subdev *sd,
|
|||
isp_set_format(sd, state, &fmt);
|
||||
}
|
||||
|
||||
dev_dbg(isp_dev->stfcamss->dev, "pad: %d sel(%d,%d)/%dx%d\n",
|
||||
dev_dbg(isp_dev->stfcamss->dev, "pad: %d sel(%d,%d)/%ux%u\n",
|
||||
sel->pad, sel->r.left, sel->r.top, sel->r.width, sel->r.height);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue