staging: atomisp: fix alignment in function signature
Subsystems (4)
PATCH 1/1 staging: atomisp: fix alignment in function signature
Fix alignment checks in function signatures
--- drivers/staging/media/atomisp/pci/atomisp_fops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_fops.c +2 -2
@@ -96,8 +96,8 @@ static int atomisp_buf_init(struct vb2_buffer *vb) }static int atomisp_q_one_metadata_buffer (struct atomisp_sub_device *asd, -enum atomisp_input_stream_id stream_id, -enum ia_css_pipe_id css_pipe_id) +enum atomisp_input_stream_id stream_id, +enum ia_css_pipe_id css_pipe_id) {struct atomisp_metadata_buf *metadata_buf;enum atomisp_metadata_type md_type =ATOMISP_MAIN_METADATA ;
--
2.47.3
Quoted 1 line · Joshua Crofts
Fix alignment checks in function signatures
First of all, missing period at the end. Second, why? Does it fix anything?
Third, is this the only issue with the driver of a kind?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 4 lines · Andy Shevchenko
First of all, missing period at the end. Second, why? Does it fix anything?
Third, is this the only issue with the driver of a kind?
Hi, I was doing some checkpatch.pl work and got a few check errors. Wasn't sure if it's convention to group all check errors together or do each separately. Apologies for the misleading commit name, i'm aware it's cleanup and not a fix.
Kind regards
CJD
Quoted 10 lines · Joshua Crofts
Quoted 4 lines · Andy Shevchenko
First of all, missing period at the end. Second, why? Does it fix anything?
Third, is this the only issue with the driver of a kind?Hi, I was doing some checkpatch.pl work and got a few check errors. Wasn't sure if it's convention to group all check errors together or do each separately. Apologies for the misleading commit name, i'm aware it's cleanup and not a fix.
It is okay and good to group the fixes for the same driver of the same kind. I don't believe it's the only single problem of this kind in this driver. But you may double check and fix them all.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 4 lines · Andy Shevchenko
It is okay and good to group the fixes for the same driver of the same kind. I don't believe it's the only single problem of this kind in this driver. But you may double check and fix them all.
Okay, I'll do a v2 and send it tomorrow (as per the guidelines you mentioned). Thanks for the feedback, I appreciate it.
Kind regards
CJD
PATCH v2 1/1 staging: atomisp: cleanup parenthesis alignment in pci.
Cleanup parenthesis alignment as per checkpatch.pl in the pci/ directory.
---
v2:
- cleaned up all files in pci/ dir directory
.../staging/media/atomisp/pci/atomisp_cmd.c | 178 +++++++++--------- .../media/atomisp/pci/atomisp_compat_css20.c | 34 ++-- .../staging/media/atomisp/pci/atomisp_fops.c | 4 +- .../media/atomisp/pci/atomisp_subdev.c | 11 +- .../staging/media/atomisp/pci/atomisp_v4l2.c | 2 +- drivers/staging/media/atomisp/pci/sh_css.c | 4 +- .../staging/media/atomisp/pci/sh_css_params.c | 77 ++++---- drivers/staging/media/atomisp/pci/sh_css_sp.c | 2 +- 8 files changed, 158 insertions(+), 154 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +89 -89
@@ -356,7 +356,7 @@ void atomisp_eof_event(struct atomisp_sub_device *asd, uint8_t exp_id) }static void atomisp_3a_stats_ready_event (struct atomisp_sub_device *asd, -uint8_t exp_id) +uint8_t exp_id) {struct v4l2_event event = {0 };
@@ -367,7 +367,7 @@ static void atomisp_3a_stats_ready_event(struct atomisp_sub_device *asd, }static void atomisp_metadata_ready_event (struct atomisp_sub_device *asd, -enum atomisp_metadata_type md_type) +enum atomisp_metadata_type md_type) {struct v4l2_event event = {0 };
@@ -2352,8 +2352,8 @@ int atomisp_cp_lsc_table(struct atomisp_sub_device *asd,if (IS_ISP2401 ) {if (copy_from_compatible (&dest_st, source_st, -sizeof (struct atomisp_shading_table ), - from_user)) { +sizeof (struct atomisp_shading_table ), + from_user)) {dev_err (asd->isp->dev,"copy shading table failed!" );return -EFAULT ; }
@@ -2488,29 +2488,29 @@ int atomisp_css_cp_dvs2_coefs(struct atomisp_sub_device *asd, dvs_hor_coef_bytes = asd->params.dvs_hor_coef_bytes; dvs_ver_coef_bytes = asd->params.dvs_ver_coef_bytes;if (copy_from_compatible (css_param->dvs2_coeff->hor_coefs.odd_real, - coefs->hor_coefs.odd_real, dvs_hor_coef_bytes, from_user) || + coefs->hor_coefs.odd_real, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.odd_imag, - coefs->hor_coefs.odd_imag, dvs_hor_coef_bytes, from_user) || + coefs->hor_coefs.odd_imag, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.even_real, - coefs->hor_coefs.even_real, dvs_hor_coef_bytes, from_user) || + coefs->hor_coefs.even_real, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.even_imag, - coefs->hor_coefs.even_imag, dvs_hor_coef_bytes, from_user) || + coefs->hor_coefs.even_imag, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.odd_real, - coefs->ver_coefs.odd_real, dvs_ver_coef_bytes, from_user) || + coefs->ver_coefs.odd_real, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.odd_imag, - coefs->ver_coefs.odd_imag, dvs_ver_coef_bytes, from_user) || + coefs->ver_coefs.odd_imag, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.even_real, - coefs->ver_coefs.even_real, dvs_ver_coef_bytes, from_user) || + coefs->ver_coefs.even_real, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.even_imag, - coefs->ver_coefs.even_imag, dvs_ver_coef_bytes, from_user)) { + coefs->ver_coefs.even_imag, dvs_ver_coef_bytes, from_user)) {ia_css_dvs2_coefficients_free (css_param->dvs2_coeff); css_param->dvs2_coeff =NULL ;return -EFAULT ; } }else {if (copy_from_compatible (&dvs2_coefs, coefs, -sizeof (struct ia_css_dvs2_coefficients ), - from_user)) { +sizeof (struct ia_css_dvs2_coefficients ), + from_user)) {dev_err (asd->isp->dev,"copy dvs2 coef failed" );return -EFAULT ; }
@@ -2544,21 +2544,21 @@ int atomisp_css_cp_dvs2_coefs(struct atomisp_sub_device *asd, dvs_hor_coef_bytes = asd->params.dvs_hor_coef_bytes; dvs_ver_coef_bytes = asd->params.dvs_ver_coef_bytes;if (copy_from_compatible (css_param->dvs2_coeff->hor_coefs.odd_real, - dvs2_coefs.hor_coefs.odd_real, dvs_hor_coef_bytes, from_user) || + dvs2_coefs.hor_coefs.odd_real, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.odd_imag, - dvs2_coefs.hor_coefs.odd_imag, dvs_hor_coef_bytes, from_user) || + dvs2_coefs.hor_coefs.odd_imag, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.even_real, - dvs2_coefs.hor_coefs.even_real, dvs_hor_coef_bytes, from_user) || + dvs2_coefs.hor_coefs.even_real, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.even_imag, - dvs2_coefs.hor_coefs.even_imag, dvs_hor_coef_bytes, from_user) || + dvs2_coefs.hor_coefs.even_imag, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.odd_real, - dvs2_coefs.ver_coefs.odd_real, dvs_ver_coef_bytes, from_user) || + dvs2_coefs.ver_coefs.odd_real, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.odd_imag, - dvs2_coefs.ver_coefs.odd_imag, dvs_ver_coef_bytes, from_user) || + dvs2_coefs.ver_coefs.odd_imag, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.even_real, - dvs2_coefs.ver_coefs.even_real, dvs_ver_coef_bytes, from_user) || + dvs2_coefs.ver_coefs.even_real, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.even_imag, - dvs2_coefs.ver_coefs.even_imag, dvs_ver_coef_bytes, from_user)) { + dvs2_coefs.ver_coefs.even_imag, dvs_ver_coef_bytes, from_user)) {ia_css_dvs2_coefficients_free (css_param->dvs2_coeff); css_param->dvs2_coeff =NULL ;return -EFAULT ;
@@ -2605,17 +2605,17 @@ int atomisp_cp_dvs_6axis_config(struct atomisp_sub_device *asd,struct ia_css_dvs_6axis_config t_6axis_config;if (copy_from_compatible (&t_6axis_config, source_6axis_config, -sizeof (struct atomisp_dvs_6axis_config ), - from_user)) { +sizeof (struct atomisp_dvs_6axis_config ), + from_user)) {dev_err (asd->isp->dev,"copy morph table failed!" );return -EFAULT ; }if (old_6axis_config && (old_6axis_config->width_y != t_6axis_config.width_y || - old_6axis_config->height_y != t_6axis_config.height_y || - old_6axis_config->width_uv != t_6axis_config.width_uv || - old_6axis_config->height_uv != t_6axis_config.height_uv)) { + old_6axis_config->height_y != t_6axis_config.height_y || + old_6axis_config->width_uv != t_6axis_config.width_uv || + old_6axis_config->height_uv != t_6axis_config.height_uv)) {ia_css_dvs2_6axis_config_free (css_param->dvs_6axis); css_param->dvs_6axis =NULL ;
@@ -2631,39 +2631,39 @@ int atomisp_cp_dvs_6axis_config(struct atomisp_sub_device *asd, dvs_6axis_config->exp_id = t_6axis_config.exp_id;if (copy_from_compatible (dvs_6axis_config->xcoords_y, - t_6axis_config.xcoords_y, - t_6axis_config.width_y * - t_6axis_config.height_y * -sizeof (*dvs_6axis_config->xcoords_y), - from_user)) + t_6axis_config.xcoords_y, + t_6axis_config.width_y * + t_6axis_config.height_y * +sizeof (*dvs_6axis_config->xcoords_y), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->ycoords_y, - t_6axis_config.ycoords_y, - t_6axis_config.width_y * - t_6axis_config.height_y * -sizeof (*dvs_6axis_config->ycoords_y), - from_user)) + t_6axis_config.ycoords_y, + t_6axis_config.width_y * + t_6axis_config.height_y * +sizeof (*dvs_6axis_config->ycoords_y), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->xcoords_uv, - t_6axis_config.xcoords_uv, - t_6axis_config.width_uv * - t_6axis_config.height_uv * -sizeof (*dvs_6axis_config->xcoords_uv), - from_user)) + t_6axis_config.xcoords_uv, + t_6axis_config.width_uv * + t_6axis_config.height_uv * +sizeof (*dvs_6axis_config->xcoords_uv), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->ycoords_uv, - t_6axis_config.ycoords_uv, - t_6axis_config.width_uv * - t_6axis_config.height_uv * -sizeof (*dvs_6axis_config->ycoords_uv), - from_user)) + t_6axis_config.ycoords_uv, + t_6axis_config.width_uv * + t_6axis_config.height_uv * +sizeof (*dvs_6axis_config->ycoords_uv), + from_user)) goto error; }else {if (old_6axis_config && (old_6axis_config->width_y != source_6axis_config->width_y || - old_6axis_config->height_y != source_6axis_config->height_y || - old_6axis_config->width_uv != source_6axis_config->width_uv || - old_6axis_config->height_uv != source_6axis_config->height_uv)) { + old_6axis_config->height_y != source_6axis_config->height_y || + old_6axis_config->width_uv != source_6axis_config->width_uv || + old_6axis_config->height_uv != source_6axis_config->height_uv)) {ia_css_dvs2_6axis_config_free (css_param->dvs_6axis); css_param->dvs_6axis =NULL ;
@@ -2683,32 +2683,32 @@ int atomisp_cp_dvs_6axis_config(struct atomisp_sub_device *asd, dvs_6axis_config->exp_id = source_6axis_config->exp_id;if (copy_from_compatible (dvs_6axis_config->xcoords_y, - source_6axis_config->xcoords_y, - source_6axis_config->width_y * - source_6axis_config->height_y * -sizeof (*source_6axis_config->xcoords_y), - from_user)) + source_6axis_config->xcoords_y, + source_6axis_config->width_y * + source_6axis_config->height_y * +sizeof (*source_6axis_config->xcoords_y), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->ycoords_y, - source_6axis_config->ycoords_y, - source_6axis_config->width_y * - source_6axis_config->height_y * -sizeof (*source_6axis_config->ycoords_y), - from_user)) + source_6axis_config->ycoords_y, + source_6axis_config->width_y * + source_6axis_config->height_y * +sizeof (*source_6axis_config->ycoords_y), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->xcoords_uv, - source_6axis_config->xcoords_uv, - source_6axis_config->width_uv * - source_6axis_config->height_uv * -sizeof (*source_6axis_config->xcoords_uv), - from_user)) + source_6axis_config->xcoords_uv, + source_6axis_config->width_uv * + source_6axis_config->height_uv * +sizeof (*source_6axis_config->xcoords_uv), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->ycoords_uv, - source_6axis_config->ycoords_uv, - source_6axis_config->width_uv * - source_6axis_config->height_uv * -sizeof (*source_6axis_config->ycoords_uv), - from_user)) + source_6axis_config->ycoords_uv, + source_6axis_config->width_uv * + source_6axis_config->height_uv * +sizeof (*source_6axis_config->ycoords_uv), + from_user)) goto error; } css_param->dvs_6axis = dvs_6axis_config;
@@ -2744,8 +2744,8 @@ int atomisp_cp_morph_table(struct atomisp_sub_device *asd,struct ia_css_morph_table mtbl;if (copy_from_compatible (&mtbl, source_morph_table, -sizeof (struct atomisp_morph_table ), - from_user)) { +sizeof (struct atomisp_morph_table ), + from_user)) {dev_err (asd->isp->dev,"copy morph table failed!" );return -EFAULT ; }
@@ -2758,17 +2758,17 @@ int atomisp_cp_morph_table(struct atomisp_sub_device *asd,for (i =0 ; i <IA_CSS_MORPH_TABLE_NUM_PLANES ; i++) {if (copy_from_compatible (morph_table->coordinates_x[i], - (__force void *)source_morph_table->coordinates_x[i], - mtbl.height * mtbl.width * -sizeof (*morph_table->coordinates_x[i]), - from_user)) + (__force void *)source_morph_table->coordinates_x[i], + mtbl.height * mtbl.width * +sizeof (*morph_table->coordinates_x[i]), + from_user)) goto error;if (copy_from_compatible (morph_table->coordinates_y[i], - (__force void *)source_morph_table->coordinates_y[i], - mtbl.height * mtbl.width * -sizeof (*morph_table->coordinates_y[i]), - from_user)) + (__force void *)source_morph_table->coordinates_y[i], + mtbl.height * mtbl.width * +sizeof (*morph_table->coordinates_y[i]), + from_user)) goto error; } }else {
@@ -2782,17 +2782,17 @@ int atomisp_cp_morph_table(struct atomisp_sub_device *asd,for (i =0 ; i <IA_CSS_MORPH_TABLE_NUM_PLANES ; i++) {if (copy_from_compatible (morph_table->coordinates_x[i], - (__force void *)source_morph_table->coordinates_x[i], - source_morph_table->height * source_morph_table->width * -sizeof (*source_morph_table->coordinates_x[i]), - from_user)) + (__force void *)source_morph_table->coordinates_x[i], + source_morph_table->height * source_morph_table->width * +sizeof (*source_morph_table->coordinates_x[i]), + from_user)) goto error;if (copy_from_compatible (morph_table->coordinates_y[i], - (__force void *)source_morph_table->coordinates_y[i], - source_morph_table->height * source_morph_table->width * -sizeof (*source_morph_table->coordinates_y[i]), - from_user)) + (__force void *)source_morph_table->coordinates_y[i], + source_morph_table->height * source_morph_table->width * +sizeof (*source_morph_table->coordinates_y[i]), + from_user)) goto error; } }
@@ -3318,7 +3318,7 @@ atomisp_v4l2_framebuffer_to_css_frame(const struct v4l2_framebuffer *arg,bytes. The RAW frame we use here should always be a 16bit RAW frame. This is why we bytesperline/2 is equal to the padded with */ if (ia_css_frame_allocate (&res, arg->fmt.width, arg->fmt.height, - sh_format, padded_width,0 )) { + sh_format, padded_width,0 )) { ret = -ENOMEM ; goto err; }
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c +18 -16
@@ -584,7 +584,7 @@ static void __apply_additional_pipe_config( }static bool is_pipe_valid_to_current_run_mode (struct atomisp_sub_device *asd, -enum ia_css_pipe_id pipe_id) +enum ia_css_pipe_id pipe_id) {if (pipe_id ==IA_CSS_PIPE_ID_YUVPP )return true;
@@ -1025,7 +1025,7 @@ void atomisp_css_update_isp_params(struct atomisp_sub_device *asd) }void atomisp_css_update_isp_params_on_pipe (struct atomisp_sub_device *asd, -struct ia_css_pipe *pipe) +struct ia_css_pipe *pipe) {int ret;
@@ -1456,8 +1456,8 @@ int atomisp_css_input_set_resolution(struct atomisp_sub_device *asd, }void atomisp_css_input_set_binning_factor (struct atomisp_sub_device *asd, -enum atomisp_input_stream_id stream_id, -unsigned int bin_factor) +enum atomisp_input_stream_id stream_id, +unsigned int bin_factor) { asd->stream_env[stream_id] .stream_config.sensor_binning_factor = bin_factor;
@@ -1908,8 +1908,8 @@ static void __configure_output(struct atomisp_sub_device *asd,* downscaling input resolution. */ static void __configure_capture_pp_input (struct atomisp_sub_device *asd, -unsigned int width,unsigned int height, -enum ia_css_pipe_id pipe_id) +unsigned int width,unsigned int height, +enum ia_css_pipe_id pipe_id) {struct atomisp_device *isp = asd->isp; struct atomisp_stream_env *stream_env =
@@ -1960,8 +1960,8 @@ static void __configure_capture_pp_input(struct atomisp_sub_device *asd,* yuv downscaling, which needs addtional configurations. */ static void __configure_preview_pp_input (struct atomisp_sub_device *asd, -unsigned int width,unsigned int height, -enum ia_css_pipe_id pipe_id) +unsigned int width,unsigned int height, +enum ia_css_pipe_id pipe_id) {struct atomisp_device *isp = asd->isp;int out_width, out_height, yuv_ds_in_width, yuv_ds_in_height;
@@ -2317,9 +2317,9 @@ int atomisp_css_copy_configure_output(struct atomisp_sub_device *asd, }int atomisp_css_preview_configure_output (struct atomisp_sub_device *asd, -unsigned int width,unsigned int height, -unsigned int min_width, -enum ia_css_frame_format format) +unsigned int width,unsigned int height, +unsigned int min_width, +enum ia_css_frame_format format) {__configure_output (asd,ATOMISP_INPUT_STREAM_GENERAL , width, height, min_width, format,IA_CSS_PIPE_ID_PREVIEW );
@@ -2327,9 +2327,9 @@ int atomisp_css_preview_configure_output(struct atomisp_sub_device *asd, }int atomisp_css_capture_configure_output (struct atomisp_sub_device *asd, -unsigned int width,unsigned int height, -unsigned int min_width, -enum ia_css_frame_format format) +unsigned int width,unsigned int height, +unsigned int min_width, +enum ia_css_frame_format format) {__configure_output (asd,ATOMISP_INPUT_STREAM_GENERAL , width, height, min_width, format,IA_CSS_PIPE_ID_CAPTURE );
@@ -2456,7 +2456,9 @@ int atomisp_css_video_configure_pp_input( }int atomisp_css_offline_capture_configure (struct atomisp_sub_device *asd, -int num_captures,unsigned int skip,int offset) +int num_captures, +unsigned int skip, +int offset) {int ret;
@@ -3355,7 +3357,7 @@ void atomisp_css_set_isp_config_id(struct atomisp_sub_device *asd, }void atomisp_css_set_isp_config_applied_frame (struct atomisp_sub_device *asd, -struct ia_css_frame *output_frame) +struct ia_css_frame *output_frame) { asd->params.config.output_frame = output_frame; }
drivers/staging/media/atomisp/pci/atomisp_fops.c +2 -2
@@ -96,8 +96,8 @@ static int atomisp_buf_init(struct vb2_buffer *vb) }static int atomisp_q_one_metadata_buffer (struct atomisp_sub_device *asd, -enum atomisp_input_stream_id stream_id, -enum ia_css_pipe_id css_pipe_id) +enum atomisp_input_stream_id stream_id, +enum ia_css_pipe_id css_pipe_id) {struct atomisp_metadata_buf *metadata_buf;enum atomisp_metadata_type md_type =ATOMISP_MAIN_METADATA ;
drivers/staging/media/atomisp/pci/atomisp_subdev.c +6 -5
@@ -202,9 +202,10 @@ static int isp_subdev_validate_rect(struct v4l2_subdev *sd, uint32_t pad, }struct v4l2_rect *atomisp_subdev_get_rect (struct v4l2_subdev *sd, -struct v4l2_subdev_state *sd_state, -u32 which,uint32_t pad, -uint32_t target) +struct v4l2_subdev_state *sd_state, +u32 which, +uint32_t pad, +uint32_t target) {struct atomisp_sub_device *isp_sd =v4l2_get_subdevdata (sd);
@@ -841,8 +842,8 @@ static int isp_subdev_init_entities(struct atomisp_sub_device *asd) asd->vfpp =v4l2_ctrl_new_custom (&asd->ctrl_handler, &ctrl_vfpp,NULL ); asd->continuous_viewfinder =v4l2_ctrl_new_custom (&asd->ctrl_handler, - &ctrl_continuous_viewfinder, -NULL ); + &ctrl_continuous_viewfinder, +NULL ); asd->continuous_raw_buffer_size = v4l2_ctrl_new_custom(&asd->ctrl_handler, &ctrl_continuous_raw_buffer_size,
drivers/staging/media/atomisp/pci/atomisp_v4l2.c +1 -1
@@ -846,7 +846,7 @@ static int atomisp_register_entities(struct atomisp_device *isp)/* Register internal entities */ for (i =0 ; i <ATOMISP_CAMERA_NR_PORTS ; i++) { ret =atomisp_mipi_csi2_register_entities (&isp->csi2_port[i], - &isp->v4l2_dev); + &isp->v4l2_dev);if (ret ==0 )continue ;
drivers/staging/media/atomisp/pci/sh_css.c +2 -2
@@ -4385,7 +4385,7 @@ sh_css_pipe_get_grid_info(struct ia_css_pipe *pipe, }else {memset (&info->dvs_grid,0 ,sizeof (info->dvs_grid));memset (&info->dvs_grid.dvs_stat_grid_info,0 , -sizeof (info->dvs_grid.dvs_stat_grid_info)); +sizeof (info->dvs_grid.dvs_stat_grid_info)); }if (binary) {
@@ -4797,7 +4797,7 @@ static int video_start(struct ia_css_pipe *pipe)if (pipe->stream->cont_capt) {ia_css_pipeline_get_sp_thread_id (ia_css_pipe_get_pipe_num (capture_pipe), - &thread_id); + &thread_id); copy_ovrd |=1 << thread_id; }
drivers/staging/media/atomisp/pci/sh_css_params.c +39 -38
166 lines not on this page · raw message
drivers/staging/media/atomisp/pci/sh_css_sp.c +1 -1
@@ -1464,7 +1464,7 @@ sh_css_update_host2sp_num_mipi_frames(unsigned int num_frames)void sh_css_update_host2sp_cont_num_raw_frames (unsigned int num_frames, -bool set_avail) +bool set_avail) {const struct ia_css_fw_info *fw;unsigned int HIVE_ADDR_host_sp_com;
Signature · 1 line
2.34.1
Re: [PATCH v2] staging: atomisp: cleanup parenthesis alignment in pci.
Quoted 2 lines · Joshua Crofts
Cleanup parenthesis alignment as per checkpatch.pl in the pci/ directory.
Use prefix in the subject as "media: atomisp:".
...
drivers/staging/media/atomisp/pci/sh_css_params.c ia_css_params_store_ia_css_host_data( · line 1062
Quoted 5 lines
drivers/staging/media/atomisp/pci/sh_css_params.c +2
-2hmm_store (ddr_addr, - (void *)(data->address), - (size_t )data->size); + (void *)(data->address), + (size_t )data->size);
In cases like this, try to use the room on the previous lines:
hmm_store(ddr_addr, (void *)(data->address), (size_t)data->size);
is perfectly fits 80 characters.
Signature · 2 lines
With Best Regards, Andy Shevchenko
PATCH v3 1/1 staging: media: atomisp: cleanup parenthesis alignment in pci.
Cleanup parenthesis alignment as per checkpatch.pl in the pci/ directory.
---
v2:
- cleaned up all files in pci/ directory
v3:
- removed newlines where params fit the 80 char size on a single line
.../staging/media/atomisp/pci/atomisp_cmd.c | 178 +++++++++--------- .../media/atomisp/pci/atomisp_compat_css20.c | 37 ++-- .../staging/media/atomisp/pci/atomisp_fops.c | 4 +- .../media/atomisp/pci/atomisp_subdev.c | 11 +- .../staging/media/atomisp/pci/atomisp_v4l2.c | 2 +- drivers/staging/media/atomisp/pci/sh_css.c | 4 +- .../staging/media/atomisp/pci/sh_css_params.c | 78 ++++---- drivers/staging/media/atomisp/pci/sh_css_sp.c | 2 +- 8 files changed, 160 insertions(+), 156 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +89 -89
@@ -356,7 +356,7 @@ void atomisp_eof_event(struct atomisp_sub_device *asd, uint8_t exp_id) }static void atomisp_3a_stats_ready_event (struct atomisp_sub_device *asd, -uint8_t exp_id) +uint8_t exp_id) {struct v4l2_event event = {0 };
@@ -367,7 +367,7 @@ static void atomisp_3a_stats_ready_event(struct atomisp_sub_device *asd, }static void atomisp_metadata_ready_event (struct atomisp_sub_device *asd, -enum atomisp_metadata_type md_type) +enum atomisp_metadata_type md_type) {struct v4l2_event event = {0 };
@@ -2352,8 +2352,8 @@ int atomisp_cp_lsc_table(struct atomisp_sub_device *asd,if (IS_ISP2401 ) {if (copy_from_compatible (&dest_st, source_st, -sizeof (struct atomisp_shading_table ), - from_user)) { +sizeof (struct atomisp_shading_table ), + from_user)) {dev_err (asd->isp->dev,"copy shading table failed!" );return -EFAULT ; }
@@ -2488,29 +2488,29 @@ int atomisp_css_cp_dvs2_coefs(struct atomisp_sub_device *asd, dvs_hor_coef_bytes = asd->params.dvs_hor_coef_bytes; dvs_ver_coef_bytes = asd->params.dvs_ver_coef_bytes;if (copy_from_compatible (css_param->dvs2_coeff->hor_coefs.odd_real, - coefs->hor_coefs.odd_real, dvs_hor_coef_bytes, from_user) || + coefs->hor_coefs.odd_real, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.odd_imag, - coefs->hor_coefs.odd_imag, dvs_hor_coef_bytes, from_user) || + coefs->hor_coefs.odd_imag, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.even_real, - coefs->hor_coefs.even_real, dvs_hor_coef_bytes, from_user) || + coefs->hor_coefs.even_real, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.even_imag, - coefs->hor_coefs.even_imag, dvs_hor_coef_bytes, from_user) || + coefs->hor_coefs.even_imag, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.odd_real, - coefs->ver_coefs.odd_real, dvs_ver_coef_bytes, from_user) || + coefs->ver_coefs.odd_real, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.odd_imag, - coefs->ver_coefs.odd_imag, dvs_ver_coef_bytes, from_user) || + coefs->ver_coefs.odd_imag, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.even_real, - coefs->ver_coefs.even_real, dvs_ver_coef_bytes, from_user) || + coefs->ver_coefs.even_real, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.even_imag, - coefs->ver_coefs.even_imag, dvs_ver_coef_bytes, from_user)) { + coefs->ver_coefs.even_imag, dvs_ver_coef_bytes, from_user)) {ia_css_dvs2_coefficients_free (css_param->dvs2_coeff); css_param->dvs2_coeff =NULL ;return -EFAULT ; } }else {if (copy_from_compatible (&dvs2_coefs, coefs, -sizeof (struct ia_css_dvs2_coefficients ), - from_user)) { +sizeof (struct ia_css_dvs2_coefficients ), + from_user)) {dev_err (asd->isp->dev,"copy dvs2 coef failed" );return -EFAULT ; }
@@ -2544,21 +2544,21 @@ int atomisp_css_cp_dvs2_coefs(struct atomisp_sub_device *asd, dvs_hor_coef_bytes = asd->params.dvs_hor_coef_bytes; dvs_ver_coef_bytes = asd->params.dvs_ver_coef_bytes;if (copy_from_compatible (css_param->dvs2_coeff->hor_coefs.odd_real, - dvs2_coefs.hor_coefs.odd_real, dvs_hor_coef_bytes, from_user) || + dvs2_coefs.hor_coefs.odd_real, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.odd_imag, - dvs2_coefs.hor_coefs.odd_imag, dvs_hor_coef_bytes, from_user) || + dvs2_coefs.hor_coefs.odd_imag, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.even_real, - dvs2_coefs.hor_coefs.even_real, dvs_hor_coef_bytes, from_user) || + dvs2_coefs.hor_coefs.even_real, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->hor_coefs.even_imag, - dvs2_coefs.hor_coefs.even_imag, dvs_hor_coef_bytes, from_user) || + dvs2_coefs.hor_coefs.even_imag, dvs_hor_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.odd_real, - dvs2_coefs.ver_coefs.odd_real, dvs_ver_coef_bytes, from_user) || + dvs2_coefs.ver_coefs.odd_real, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.odd_imag, - dvs2_coefs.ver_coefs.odd_imag, dvs_ver_coef_bytes, from_user) || + dvs2_coefs.ver_coefs.odd_imag, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.even_real, - dvs2_coefs.ver_coefs.even_real, dvs_ver_coef_bytes, from_user) || + dvs2_coefs.ver_coefs.even_real, dvs_ver_coef_bytes, from_user) ||copy_from_compatible (css_param->dvs2_coeff->ver_coefs.even_imag, - dvs2_coefs.ver_coefs.even_imag, dvs_ver_coef_bytes, from_user)) { + dvs2_coefs.ver_coefs.even_imag, dvs_ver_coef_bytes, from_user)) {ia_css_dvs2_coefficients_free (css_param->dvs2_coeff); css_param->dvs2_coeff =NULL ;return -EFAULT ;
@@ -2605,17 +2605,17 @@ int atomisp_cp_dvs_6axis_config(struct atomisp_sub_device *asd,struct ia_css_dvs_6axis_config t_6axis_config;if (copy_from_compatible (&t_6axis_config, source_6axis_config, -sizeof (struct atomisp_dvs_6axis_config ), - from_user)) { +sizeof (struct atomisp_dvs_6axis_config ), + from_user)) {dev_err (asd->isp->dev,"copy morph table failed!" );return -EFAULT ; }if (old_6axis_config && (old_6axis_config->width_y != t_6axis_config.width_y || - old_6axis_config->height_y != t_6axis_config.height_y || - old_6axis_config->width_uv != t_6axis_config.width_uv || - old_6axis_config->height_uv != t_6axis_config.height_uv)) { + old_6axis_config->height_y != t_6axis_config.height_y || + old_6axis_config->width_uv != t_6axis_config.width_uv || + old_6axis_config->height_uv != t_6axis_config.height_uv)) {ia_css_dvs2_6axis_config_free (css_param->dvs_6axis); css_param->dvs_6axis =NULL ;
@@ -2631,39 +2631,39 @@ int atomisp_cp_dvs_6axis_config(struct atomisp_sub_device *asd, dvs_6axis_config->exp_id = t_6axis_config.exp_id;if (copy_from_compatible (dvs_6axis_config->xcoords_y, - t_6axis_config.xcoords_y, - t_6axis_config.width_y * - t_6axis_config.height_y * -sizeof (*dvs_6axis_config->xcoords_y), - from_user)) + t_6axis_config.xcoords_y, + t_6axis_config.width_y * + t_6axis_config.height_y * +sizeof (*dvs_6axis_config->xcoords_y), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->ycoords_y, - t_6axis_config.ycoords_y, - t_6axis_config.width_y * - t_6axis_config.height_y * -sizeof (*dvs_6axis_config->ycoords_y), - from_user)) + t_6axis_config.ycoords_y, + t_6axis_config.width_y * + t_6axis_config.height_y * +sizeof (*dvs_6axis_config->ycoords_y), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->xcoords_uv, - t_6axis_config.xcoords_uv, - t_6axis_config.width_uv * - t_6axis_config.height_uv * -sizeof (*dvs_6axis_config->xcoords_uv), - from_user)) + t_6axis_config.xcoords_uv, + t_6axis_config.width_uv * + t_6axis_config.height_uv * +sizeof (*dvs_6axis_config->xcoords_uv), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->ycoords_uv, - t_6axis_config.ycoords_uv, - t_6axis_config.width_uv * - t_6axis_config.height_uv * -sizeof (*dvs_6axis_config->ycoords_uv), - from_user)) + t_6axis_config.ycoords_uv, + t_6axis_config.width_uv * + t_6axis_config.height_uv * +sizeof (*dvs_6axis_config->ycoords_uv), + from_user)) goto error; }else {if (old_6axis_config && (old_6axis_config->width_y != source_6axis_config->width_y || - old_6axis_config->height_y != source_6axis_config->height_y || - old_6axis_config->width_uv != source_6axis_config->width_uv || - old_6axis_config->height_uv != source_6axis_config->height_uv)) { + old_6axis_config->height_y != source_6axis_config->height_y || + old_6axis_config->width_uv != source_6axis_config->width_uv || + old_6axis_config->height_uv != source_6axis_config->height_uv)) {ia_css_dvs2_6axis_config_free (css_param->dvs_6axis); css_param->dvs_6axis =NULL ;
@@ -2683,32 +2683,32 @@ int atomisp_cp_dvs_6axis_config(struct atomisp_sub_device *asd, dvs_6axis_config->exp_id = source_6axis_config->exp_id;if (copy_from_compatible (dvs_6axis_config->xcoords_y, - source_6axis_config->xcoords_y, - source_6axis_config->width_y * - source_6axis_config->height_y * -sizeof (*source_6axis_config->xcoords_y), - from_user)) + source_6axis_config->xcoords_y, + source_6axis_config->width_y * + source_6axis_config->height_y * +sizeof (*source_6axis_config->xcoords_y), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->ycoords_y, - source_6axis_config->ycoords_y, - source_6axis_config->width_y * - source_6axis_config->height_y * -sizeof (*source_6axis_config->ycoords_y), - from_user)) + source_6axis_config->ycoords_y, + source_6axis_config->width_y * + source_6axis_config->height_y * +sizeof (*source_6axis_config->ycoords_y), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->xcoords_uv, - source_6axis_config->xcoords_uv, - source_6axis_config->width_uv * - source_6axis_config->height_uv * -sizeof (*source_6axis_config->xcoords_uv), - from_user)) + source_6axis_config->xcoords_uv, + source_6axis_config->width_uv * + source_6axis_config->height_uv * +sizeof (*source_6axis_config->xcoords_uv), + from_user)) goto error;if (copy_from_compatible (dvs_6axis_config->ycoords_uv, - source_6axis_config->ycoords_uv, - source_6axis_config->width_uv * - source_6axis_config->height_uv * -sizeof (*source_6axis_config->ycoords_uv), - from_user)) + source_6axis_config->ycoords_uv, + source_6axis_config->width_uv * + source_6axis_config->height_uv * +sizeof (*source_6axis_config->ycoords_uv), + from_user)) goto error; } css_param->dvs_6axis = dvs_6axis_config;
@@ -2744,8 +2744,8 @@ int atomisp_cp_morph_table(struct atomisp_sub_device *asd,struct ia_css_morph_table mtbl;if (copy_from_compatible (&mtbl, source_morph_table, -sizeof (struct atomisp_morph_table ), - from_user)) { +sizeof (struct atomisp_morph_table ), + from_user)) {dev_err (asd->isp->dev,"copy morph table failed!" );return -EFAULT ; }
@@ -2758,17 +2758,17 @@ int atomisp_cp_morph_table(struct atomisp_sub_device *asd,for (i =0 ; i <IA_CSS_MORPH_TABLE_NUM_PLANES ; i++) {if (copy_from_compatible (morph_table->coordinates_x[i], - (__force void *)source_morph_table->coordinates_x[i], - mtbl.height * mtbl.width * -sizeof (*morph_table->coordinates_x[i]), - from_user)) + (__force void *)source_morph_table->coordinates_x[i], + mtbl.height * mtbl.width * +sizeof (*morph_table->coordinates_x[i]), + from_user)) goto error;if (copy_from_compatible (morph_table->coordinates_y[i], - (__force void *)source_morph_table->coordinates_y[i], - mtbl.height * mtbl.width * -sizeof (*morph_table->coordinates_y[i]), - from_user)) + (__force void *)source_morph_table->coordinates_y[i], + mtbl.height * mtbl.width * +sizeof (*morph_table->coordinates_y[i]), + from_user)) goto error; } }else {
@@ -2782,17 +2782,17 @@ int atomisp_cp_morph_table(struct atomisp_sub_device *asd,for (i =0 ; i <IA_CSS_MORPH_TABLE_NUM_PLANES ; i++) {if (copy_from_compatible (morph_table->coordinates_x[i], - (__force void *)source_morph_table->coordinates_x[i], - source_morph_table->height * source_morph_table->width * -sizeof (*source_morph_table->coordinates_x[i]), - from_user)) + (__force void *)source_morph_table->coordinates_x[i], + source_morph_table->height * source_morph_table->width * +sizeof (*source_morph_table->coordinates_x[i]), + from_user)) goto error;if (copy_from_compatible (morph_table->coordinates_y[i], - (__force void *)source_morph_table->coordinates_y[i], - source_morph_table->height * source_morph_table->width * -sizeof (*source_morph_table->coordinates_y[i]), - from_user)) + (__force void *)source_morph_table->coordinates_y[i], + source_morph_table->height * source_morph_table->width * +sizeof (*source_morph_table->coordinates_y[i]), + from_user)) goto error; } }
@@ -3318,7 +3318,7 @@ atomisp_v4l2_framebuffer_to_css_frame(const struct v4l2_framebuffer *arg,bytes. The RAW frame we use here should always be a 16bit RAW frame. This is why we bytesperline/2 is equal to the padded with */ if (ia_css_frame_allocate (&res, arg->fmt.width, arg->fmt.height, - sh_format, padded_width,0 )) { + sh_format, padded_width,0 )) { ret = -ENOMEM ; goto err; }
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c +21 -16
@@ -584,7 +584,7 @@ static void __apply_additional_pipe_config( }static bool is_pipe_valid_to_current_run_mode (struct atomisp_sub_device *asd, -enum ia_css_pipe_id pipe_id) +enum ia_css_pipe_id pipe_id) {if (pipe_id ==IA_CSS_PIPE_ID_YUVPP )return true;
@@ -1025,7 +1025,7 @@ void atomisp_css_update_isp_params(struct atomisp_sub_device *asd) }void atomisp_css_update_isp_params_on_pipe (struct atomisp_sub_device *asd, -struct ia_css_pipe *pipe) +struct ia_css_pipe *pipe) {int ret;
@@ -1456,8 +1456,8 @@ int atomisp_css_input_set_resolution(struct atomisp_sub_device *asd, }void atomisp_css_input_set_binning_factor (struct atomisp_sub_device *asd, -enum atomisp_input_stream_id stream_id, -unsigned int bin_factor) +enum atomisp_input_stream_id stream_id, +unsigned int bin_factor) { asd->stream_env[stream_id] .stream_config.sensor_binning_factor = bin_factor;
@@ -1908,8 +1908,9 @@ static void __configure_output(struct atomisp_sub_device *asd,* downscaling input resolution. */ static void __configure_capture_pp_input (struct atomisp_sub_device *asd, -unsigned int width,unsigned int height, -enum ia_css_pipe_id pipe_id) +unsigned int width, +unsigned int height, +enum ia_css_pipe_id pipe_id) {struct atomisp_device *isp = asd->isp; struct atomisp_stream_env *stream_env =
@@ -1960,8 +1961,8 @@ static void __configure_capture_pp_input(struct atomisp_sub_device *asd,* yuv downscaling, which needs addtional configurations. */ static void __configure_preview_pp_input (struct atomisp_sub_device *asd, -unsigned int width,unsigned int height, -enum ia_css_pipe_id pipe_id) +unsigned int width,unsigned int height, +enum ia_css_pipe_id pipe_id) {struct atomisp_device *isp = asd->isp;int out_width, out_height, yuv_ds_in_width, yuv_ds_in_height;
@@ -2317,9 +2318,10 @@ int atomisp_css_copy_configure_output(struct atomisp_sub_device *asd, }int atomisp_css_preview_configure_output (struct atomisp_sub_device *asd, -unsigned int width,unsigned int height, -unsigned int min_width, -enum ia_css_frame_format format) +unsigned int width, +unsigned int height, +unsigned int min_width, +enum ia_css_frame_format format) {__configure_output (asd,ATOMISP_INPUT_STREAM_GENERAL , width, height, min_width, format,IA_CSS_PIPE_ID_PREVIEW );
@@ -2327,9 +2329,10 @@ int atomisp_css_preview_configure_output(struct atomisp_sub_device *asd, }int atomisp_css_capture_configure_output (struct atomisp_sub_device *asd, -unsigned int width,unsigned int height, -unsigned int min_width, -enum ia_css_frame_format format) +unsigned int width, +unsigned int height, +unsigned int min_width, +enum ia_css_frame_format format) {__configure_output (asd,ATOMISP_INPUT_STREAM_GENERAL , width, height, min_width, format,IA_CSS_PIPE_ID_CAPTURE );
@@ -2456,7 +2459,9 @@ int atomisp_css_video_configure_pp_input( }int atomisp_css_offline_capture_configure (struct atomisp_sub_device *asd, -int num_captures,unsigned int skip,int offset) +int num_captures, +unsigned int skip, +int offset) {int ret;
@@ -3355,7 +3360,7 @@ void atomisp_css_set_isp_config_id(struct atomisp_sub_device *asd, }void atomisp_css_set_isp_config_applied_frame (struct atomisp_sub_device *asd, -struct ia_css_frame *output_frame) +struct ia_css_frame *output_frame) { asd->params.config.output_frame = output_frame; }
drivers/staging/media/atomisp/pci/atomisp_fops.c +2 -2
@@ -96,8 +96,8 @@ static int atomisp_buf_init(struct vb2_buffer *vb) }static int atomisp_q_one_metadata_buffer (struct atomisp_sub_device *asd, -enum atomisp_input_stream_id stream_id, -enum ia_css_pipe_id css_pipe_id) +enum atomisp_input_stream_id stream_id, +enum ia_css_pipe_id css_pipe_id) {struct atomisp_metadata_buf *metadata_buf;enum atomisp_metadata_type md_type =ATOMISP_MAIN_METADATA ;
drivers/staging/media/atomisp/pci/atomisp_subdev.c +6 -5
@@ -202,9 +202,10 @@ static int isp_subdev_validate_rect(struct v4l2_subdev *sd, uint32_t pad, }struct v4l2_rect *atomisp_subdev_get_rect (struct v4l2_subdev *sd, -struct v4l2_subdev_state *sd_state, -u32 which,uint32_t pad, -uint32_t target) +struct v4l2_subdev_state *sd_state, +u32 which, +uint32_t pad, +uint32_t target) {struct atomisp_sub_device *isp_sd =v4l2_get_subdevdata (sd);
@@ -841,8 +842,8 @@ static int isp_subdev_init_entities(struct atomisp_sub_device *asd) asd->vfpp =v4l2_ctrl_new_custom (&asd->ctrl_handler, &ctrl_vfpp,NULL ); asd->continuous_viewfinder =v4l2_ctrl_new_custom (&asd->ctrl_handler, - &ctrl_continuous_viewfinder, -NULL ); + &ctrl_continuous_viewfinder, +NULL ); asd->continuous_raw_buffer_size = v4l2_ctrl_new_custom(&asd->ctrl_handler, &ctrl_continuous_raw_buffer_size,
drivers/staging/media/atomisp/pci/atomisp_v4l2.c +1 -1
@@ -846,7 +846,7 @@ static int atomisp_register_entities(struct atomisp_device *isp)/* Register internal entities */ for (i =0 ; i <ATOMISP_CAMERA_NR_PORTS ; i++) { ret =atomisp_mipi_csi2_register_entities (&isp->csi2_port[i], - &isp->v4l2_dev); + &isp->v4l2_dev);if (ret ==0 )continue ;
drivers/staging/media/atomisp/pci/sh_css.c +2 -2
@@ -4385,7 +4385,7 @@ sh_css_pipe_get_grid_info(struct ia_css_pipe *pipe, }else {memset (&info->dvs_grid,0 ,sizeof (info->dvs_grid));memset (&info->dvs_grid.dvs_stat_grid_info,0 , -sizeof (info->dvs_grid.dvs_stat_grid_info)); +sizeof (info->dvs_grid.dvs_stat_grid_info)); }if (binary) {
@@ -4797,7 +4797,7 @@ static int video_start(struct ia_css_pipe *pipe)if (pipe->stream->cont_capt) {ia_css_pipeline_get_sp_thread_id (ia_css_pipe_get_pipe_num (capture_pipe), - &thread_id); + &thread_id); copy_ovrd |=1 << thread_id; }
drivers/staging/media/atomisp/pci/sh_css_params.c +38 -40
167 lines not on this page · raw message
drivers/staging/media/atomisp/pci/sh_css_sp.c +1 -1
@@ -1464,7 +1464,7 @@ sh_css_update_host2sp_num_mipi_frames(unsigned int num_frames)void sh_css_update_host2sp_cont_num_raw_frames (unsigned int num_frames, -bool set_avail) +bool set_avail) {const struct ia_css_fw_info *fw;unsigned int HIVE_ADDR_host_sp_com;
Signature · 1 line
2.34.1
Re: [PATCH v3] staging: media: atomisp: cleanup parenthesis alignment in pci.
Quoted 2 lines · Joshua Crofts
Cleanup parenthesis alignment as per checkpatch.pl in the pci/ directory.
Thanks for doing this. However, the proper fix should be the getting rid of copy_from_compatible() in favour of using iov_iter. You can consult with this example:49aa6ed94c5e ("ALSA: korg1212: Convert to generic PCM copy ops")
The current patch in its form is quite low priority and not guaranteed to be ever applied. Sorry, we consider real patches to be done first, see above.
(Note, the rest of the patch is okay, but again, quite low priority.)
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCH v3] staging: media: atomisp: cleanup parenthesis alignment in pci.
Quoted 6 lines · Andy Shevchenko
Thanks for doing this. However, the proper fix should be the getting rid of
copy_from_compatible()in favour of usingiov_iter. You can consult with this example:49aa6ed94c5e("ALSA: korg1212: Convert to generic PCM copy ops")
Okay, I'll have a look at it. Thanks for the heads up about this problem.
Quoted 3 lines
The current patch in its form is quite low priority and not guaranteed to be ever applied. Sorry, we consider real patches to be done first, see above.
Fair enough, I would've expected formatting to be low priority. This is the first
patch I've worked on so at least I got to scope out what's what. Either way, thanks for the reviews.
Kind regards
CJD