break;
case V4L2_CID_HBLANK:
rval = ccs_write(sensor, LINE_LENGTH_PCK,
- sensor->pixel_array->crop[
- CCS_PA_PAD_SRC].width
+ sensor->pixel_array->crop[CCS_PA_PAD_SRC].width
+ ctrl->val);
break;
min = max_t(int,
CCS_LIM(sensor, MIN_FRAME_BLANKING_LINES),
- min_fll -
- sensor->pixel_array->crop[CCS_PA_PAD_SRC].height);
+ min_fll - sensor->pixel_array->crop[CCS_PA_PAD_SRC].height);
max = max_fll - sensor->pixel_array->crop[CCS_PA_PAD_SRC].height;
__v4l2_ctrl_modify_range(vblank, min, max, vblank->step, min);
min = max_t(int,
- min_llp -
- sensor->pixel_array->crop[CCS_PA_PAD_SRC].width,
+ min_llp - sensor->pixel_array->crop[CCS_PA_PAD_SRC].width,
min_lbp);
max = max_llp - sensor->pixel_array->crop[CCS_PA_PAD_SRC].width;
} else {
if (crops) {
for (i = 0; i < subdev->entity.num_pads; i++)
- crops[i] = v4l2_subdev_get_try_crop(subdev, cfg, i);
+ crops[i] = v4l2_subdev_get_try_crop(subdev,
+ cfg, i);
}
if (comps)
*comps = v4l2_subdev_get_try_compose(subdev, cfg,
comp->height = crops[CCS_PAD_SINK]->height;
if (which == V4L2_SUBDEV_FORMAT_ACTIVE) {
if (ssd == sensor->scaler) {
- sensor->scale_m =
- CCS_LIM(sensor, SCALER_N_MIN);
+ sensor->scale_m = CCS_LIM(sensor, SCALER_N_MIN);
sensor->scaling_mode =
CCS_SCALING_MODE_NO_SCALING;
} else if (ssd == sensor->binner) {
if (sel->pad == ssd->sink_pad) {
_r.left = 0;
_r.top = 0;
- _r.width = v4l2_subdev_get_try_format(subdev, cfg, sel->pad)
+ _r.width = v4l2_subdev_get_try_format(subdev, cfg,
+ sel->pad)
->width;
- _r.height = v4l2_subdev_get_try_format(subdev, cfg, sel->pad)
+ _r.height = v4l2_subdev_get_try_format(subdev, cfg,
+ sel->pad)
->height;
src_size = &_r;
} else {
sel->r.width = CCS_ALIGN_DIM(sel->r.width, sel->flags);
sel->r.height = CCS_ALIGN_DIM(sel->r.height, sel->flags);
- sel->r.width = max_t(unsigned int,
- CCS_LIM(sensor, MIN_X_OUTPUT_SIZE),
+ sel->r.width = max_t(unsigned int, CCS_LIM(sensor, MIN_X_OUTPUT_SIZE),
sel->r.width);
- sel->r.height = max_t(unsigned int,
- CCS_LIM(sensor, MIN_Y_OUTPUT_SIZE),
+ sel->r.height = max_t(unsigned int, CCS_LIM(sensor, MIN_Y_OUTPUT_SIZE),
sel->r.height);
switch (sel->target) {
dev_warn(&client->dev,
"no quirks for this module; let's hope it's fully compliant\n");
- dev_dbg(&client->dev, "the sensor is called %s\n",
- minfo->name);
+ dev_dbg(&client->dev, "the sensor is called %s\n", minfo->name);
return 0;
}
if (!sink_ssd)
return 0;
- rval = media_entity_pads_init(&ssd->sd.entity,
- ssd->npads, ssd->pads);
+ rval = media_entity_pads_init(&ssd->sd.entity, ssd->npads, ssd->pads);
if (rval) {
- dev_err(&client->dev,
- "media_entity_pads_init failed\n");
+ dev_err(&client->dev, "media_entity_pads_init failed\n");
return rval;
}
- rval = v4l2_device_register_subdev(sensor->src->sd.v4l2_dev,
- &ssd->sd);
+ rval = v4l2_device_register_subdev(sensor->src->sd.v4l2_dev, &ssd->sd);
if (rval) {
- dev_err(&client->dev,
- "v4l2_device_register_subdev failed\n");
+ dev_err(&client->dev, "v4l2_device_register_subdev failed\n");
return rval;
}
&sink_ssd->sd.entity, sink_pad,
link_flags);
if (rval) {
- dev_err(&client->dev,
- "media_create_pad_link failed\n");
+ dev_err(&client->dev, "media_create_pad_link failed\n");
v4l2_device_unregister_subdev(&ssd->sd);
return rval;
}