Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: atomisp: Rename atomisp_set_crop_and_fmt()

Rename atomisp_set_crop_and_fmt() to atomisp_set_sensor_crop_and_fmt()
to make clear that it operates on the sensor subdev.

Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Hans de Goede and committed by
Mauro Carvalho Chehab
ce5547e7 c1dc6f5a

+6 -6
+6 -6
drivers/staging/media/atomisp/pci/atomisp_cmd.c
··· 3721 3721 *padding_h = max_t(u32, *padding_h, min_pad_h); 3722 3722 } 3723 3723 3724 - static int atomisp_set_crop_and_fmt(struct atomisp_device *isp, 3725 - struct v4l2_mbus_framefmt *ffmt, 3726 - int which) 3724 + static int atomisp_set_sensor_crop_and_fmt(struct atomisp_device *isp, 3725 + struct v4l2_mbus_framefmt *ffmt, 3726 + int which) 3727 3727 { 3728 3728 struct atomisp_input_subdev *input = &isp->inputs[isp->asd.input_curr]; 3729 3729 struct v4l2_subdev_selection sel = { ··· 3817 3817 3818 3818 dev_dbg(isp->dev, "try_mbus_fmt: try %ux%u\n", ffmt.width, ffmt.height); 3819 3819 3820 - ret = atomisp_set_crop_and_fmt(isp, &ffmt, V4L2_SUBDEV_FORMAT_TRY); 3820 + ret = atomisp_set_sensor_crop_and_fmt(isp, &ffmt, V4L2_SUBDEV_FORMAT_TRY); 3821 3821 if (ret) 3822 3822 return ret; 3823 3823 ··· 4263 4263 4264 4264 /* Disable dvs if resolution can't be supported by sensor */ 4265 4265 if (asd->params.video_dis_en && asd->run_mode->val == ATOMISP_RUN_MODE_VIDEO) { 4266 - ret = atomisp_set_crop_and_fmt(isp, &ffmt, V4L2_SUBDEV_FORMAT_TRY); 4266 + ret = atomisp_set_sensor_crop_and_fmt(isp, &ffmt, V4L2_SUBDEV_FORMAT_TRY); 4267 4267 if (ret) 4268 4268 return ret; 4269 4269 ··· 4281 4281 } 4282 4282 } 4283 4283 4284 - ret = atomisp_set_crop_and_fmt(isp, &ffmt, V4L2_SUBDEV_FORMAT_ACTIVE); 4284 + ret = atomisp_set_sensor_crop_and_fmt(isp, &ffmt, V4L2_SUBDEV_FORMAT_ACTIVE); 4285 4285 if (ret) 4286 4286 return ret; 4287 4287