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: ccs: Remove which parameter from ccs_propagate

ccs_propagate() no longer stores information in the driver's context
struct. The which parameter can thus be removed.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Sakari Ailus and committed by
Hans Verkuil
026d02ea ce7b25c0

+5 -7
+5 -7
drivers/media/i2c/ccs/ccs-core.c
··· 2156 2156 2157 2157 /* Changes require propagation only on sink pad. */ 2158 2158 static void ccs_propagate(struct v4l2_subdev *subdev, 2159 - struct v4l2_subdev_state *sd_state, int which, 2160 - int target) 2159 + struct v4l2_subdev_state *sd_state, int target) 2161 2160 { 2162 2161 struct ccs_subdev *ssd = to_ccs_subdev(subdev); 2163 2162 struct v4l2_rect *comp, *crop; ··· 2277 2278 crop->top = 0; 2278 2279 crop->width = fmt->format.width; 2279 2280 crop->height = fmt->format.height; 2280 - ccs_propagate(subdev, sd_state, fmt->which, V4L2_SEL_TGT_CROP); 2281 + ccs_propagate(subdev, sd_state, V4L2_SEL_TGT_CROP); 2281 2282 2282 2283 return 0; 2283 2284 } ··· 2486 2487 ccs_set_compose_scaler(subdev, sd_state, sel, sink_crop); 2487 2488 2488 2489 *comp = sel->r; 2489 - ccs_propagate(subdev, sd_state, sel->which, V4L2_SEL_TGT_COMPOSE); 2490 + ccs_propagate(subdev, sd_state, V4L2_SEL_TGT_COMPOSE); 2490 2491 2491 2492 if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) 2492 2493 return ccs_pll_blanking_update(sensor); ··· 2570 2571 *crop = sel->r; 2571 2572 2572 2573 if (ssd != sensor->pixel_array && sel->pad == CCS_PAD_SINK) 2573 - ccs_propagate(subdev, sd_state, sel->which, V4L2_SEL_TGT_CROP); 2574 + ccs_propagate(subdev, sd_state, V4L2_SEL_TGT_CROP); 2574 2575 2575 2576 return 0; 2576 2577 } ··· 3076 3077 v4l2_subdev_state_get_format(sd_state, pad); 3077 3078 struct v4l2_rect *crop = 3078 3079 v4l2_subdev_state_get_crop(sd_state, pad); 3079 - bool is_active = !sd->active_state || sd->active_state == sd_state; 3080 3080 3081 3081 guard(mutex)(&sensor->mutex); 3082 3082 ··· 3094 3096 sensor->csi_format->code : sensor->internal_csi_format->code; 3095 3097 fmt->field = V4L2_FIELD_NONE; 3096 3098 3097 - ccs_propagate(sd, sd_state, is_active, V4L2_SEL_TGT_CROP); 3099 + ccs_propagate(sd, sd_state, V4L2_SEL_TGT_CROP); 3098 3100 3099 3101 return 0; 3100 3102 }