From nobody Sun Jun 14 11:27:14 2026 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BF182EBBB9 for ; Thu, 2 Apr 2026 13:30:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775136611; cv=none; b=hxOypIioZfmyNnH7YsQEVEePNqcQcnNs74bR3dViBaOXiOS1ZSbuPamq7De1xNz7f+qt5C30dM2qGamFyGDMXNGuByel8DkFnxpZw2rH/7CxJk9OoiDVlgPjRxVzLKcG3UtkLV+1EiDgtInSw4t4gZBuXyVsSz5REAAxGJh3dbM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775136611; c=relaxed/simple; bh=XVCi/546amQIFXhYbaiOvywekubDKDUMCWNbag5Wb24=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gpmlkjXtjz4i3LfCaCvhvkaIVGUNviEBbyDvzG2+oSZFKyBbAECFaXGEjTY/mQnwPs7hr0A/ReyfLwX353qYIJS4b0Y5LM5DHo6DV++GhySjVTNe767Hi0DNLS2zu/F3LRcHdsO0DAeqK4745IGRp+vaglK2i/UNlVMnZPwIhIs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eNehMSP7; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eNehMSP7" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4853c1ca73aso8744145e9.2 for ; Thu, 02 Apr 2026 06:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775136608; x=1775741408; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=X0MIU8GEyiO9stMRDDy9bZVbExCEI6xq1O1exAfXJh0=; b=eNehMSP7lWfQVVl1ZXrGxcfUUzkEGGvYjPsFJ+0FM2hN/Lp7wbZuz3sxTuTYfsBsJd 1yDtt4yGkn53/HoH0eYxSKvYcvLGxR5ABlxXVdQDH8RfyxoY1vR2iPoy7dU8X34cEi9E yUFBUVCzmJm/jrhWazLzDwxdpKtObc1wEB8igiYJA7blBt8I/TVZZlsRFbbACHuPDU15 gxYwVCFd2EyQjOquWAxyNi1gnE+siMHuA48XENqVoJhTXu9CNvisd5uiONh8yQs19tFp P5xtIhJdvjrP2eLJaP4XEajqjcV5DNNpEtV37w/UXpD+tMwbw00CZTG0gtRcyjNEQjS/ nX5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775136608; x=1775741408; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=X0MIU8GEyiO9stMRDDy9bZVbExCEI6xq1O1exAfXJh0=; b=sC12WpmObSsNY83/HpqUmzczGLkdJCJ2kKJuemOlgm/Zg4j2fsZsLWkykZbvZLv8j+ lZ4sme5oRDiihtgmq7ov8R976WGwfnt5vbGOLFw2Qbtzz98c0YFTSmODistMVlFfU5p3 9ydko8cVxZlixXN+pCLd4+muLC+rO9h89IlHDfhThZml0oPrtzmxnE19SSXlqQGmqDra CusJHNq5ynlvjxhVoBWxfMeeIHd/pwc9zvYCUVg6urCUpd2JvNpTogq+p7Ya1UF+svpN bMHjygyOM7hQi4MOCaQWdlyBYWOsTZcT6oha7vSyZtz+ojCnmAdx4ee558e9Sx757M1w c/mg== X-Forwarded-Encrypted: i=1; AJvYcCWUZu/7E5kBxmy4PMu7YYdpbvtkZpQVdQ+HyV3DAALNVpjm7+xHl3VCKDSBMV9S8ND9gTe+K9cJVNYZwGY=@vger.kernel.org X-Gm-Message-State: AOJu0YzvcyqtzQlCi/uNgM2sEdkbcDJ4sbI8RCETVaOjFeHgfvq797C/ EfRbm2rHY1Vygv+cv70tmDl2gmxMGtx5wPc/7PXMGuwB1WSDopbAkkiS X-Gm-Gg: ATEYQzxM5APk22IZPH3wa+lVRtSPJy29C4w58RA+JRzuTawNGPlPWJsbbmIRXI9rEvo WfiEu8fiMBPNBss5JTNlQWQ68uZNPDm0PDKlfCYYqU0/VkEAf41zo9U8jOCcP9f+Sm39LPzgjwB HeRpqFg32E2EEnPCX9aE9YiVBRBU13acpLqAssbwVG4oFWQnq6WTQj5DG/1p7MPezr1eZcMAQG1 3JHMAU6ZNFcDW+oA39hOVCoJVV4eCWMCsWmfmlCLQmWYbosEjTjFkV5WhpP5LzyZ6mntJtzNXP6 pHqQxNgvrXpXAdS+xjRMHEbhCPKq8CWieF+LwPixVoi8t05nX6TDWT/WArm3y2+1RYHJXpOONKH UfArw2hgcbhLEPTj5xlaBfBrGAfgjSyEPoEwuTS2eabJOOgRrNNw3E0YDI6JNE1V9xH7XjpS3Do +vpcG6NhJlqJfNJdugbu+N X-Received: by 2002:a05:600c:848d:b0:485:3c66:e230 with SMTP id 5b1f17b1804b1-488835b78f1mr141100575e9.29.1775136608192; Thu, 02 Apr 2026 06:30:08 -0700 (PDT) Received: from MEROWN ([85.93.99.108]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4887e93cf2dsm177225405e9.11.2026.04.02.06.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2026 06:30:07 -0700 (PDT) From: Daniil Bulgar To: gregkh@linuxfoundation.org, hansg@kernel.org Cc: mchehab@kernel.org, sakari.ailus@linux.intel.com, andy@kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Daniil Bulgar Subject: [PATCH] staging: media: atomisp: fix indentation and spacing in sh_css.c Date: Thu, 2 Apr 2026 15:30:05 +0200 Message-ID: <20260402133005.288643-1-bulgardaniil18@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix several coding style errors reported by checkpatch.pl. Use tabs for indentation instead of spaces. Fix alignment of function arguments to match the opening parenthesis. Remove trailing whitespaces and fix blank lines. Signed-off-by: Daniil Bulgar --- drivers/staging/media/atomisp/pci/sh_css.c | 103 ++++++++++----------- 1 file changed, 49 insertions(+), 54 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/sh_css.c b/drivers/staging/m= edia/atomisp/pci/sh_css.c index 6cda5925f..fbfa54235 100644 --- a/drivers/staging/media/atomisp/pci/sh_css.c +++ b/drivers/staging/media/atomisp/pci/sh_css.c @@ -65,7 +65,6 @@ =20 #define SH_CSS_VIDEO_BUFFER_ALIGNMENT 0 =20 - #include "ia_css_spctrl.h" #include "ia_css_version_data.h" #include "sh_css_struct.h" @@ -101,7 +100,7 @@ enum ia_sh_css_modes { sh_css_mode_resume }; =20 -/** +/* * struct sh_css_stream_seed - a stream seed, to save and restore the * stream data. * @@ -115,7 +114,7 @@ enum ia_sh_css_modes { * * the stream seed contains all the data required to "grow" the seed again * after it was closed. -*/ + */ struct sh_css_stream_seed { struct ia_css_stream **orig_stream; struct ia_css_stream *stream; @@ -208,11 +207,11 @@ need_capture_pp(const struct ia_css_pipe *pipe); static bool need_yuv_scaler_stage(const struct ia_css_pipe *pipe); =20 -static int ia_css_pipe_create_cas_scaler_desc_single_output( - struct ia_css_frame_info *cas_scaler_in_info, - struct ia_css_frame_info *cas_scaler_out_info, - struct ia_css_frame_info *cas_scaler_vf_info, - struct ia_css_cas_binary_descr *descr); +static int +ia_css_pipe_create_cas_scaler_desc_single_output(struct ia_css_frame_info = *cas_scaler_in_info, + struct ia_css_frame_info *cas_scaler_out_info, + struct ia_css_frame_info *cas_scaler_vf_info, + struct ia_css_cas_binary_descr *descr); =20 static void ia_css_pipe_destroy_cas_scaler_desc(struct ia_css_cas_binary_d= escr *descr); @@ -226,11 +225,10 @@ static bool need_capt_ldc(const struct ia_css_pipe *p= ipe); static int sh_css_pipe_load_binaries(struct ia_css_pipe *pipe); =20 -static -int sh_css_pipe_get_viewfinder_frame_info( - struct ia_css_pipe *pipe, - struct ia_css_frame_info *info, - unsigned int idx); +static int +sh_css_pipe_get_viewfinder_frame_info(struct ia_css_pipe *pipe, + struct ia_css_frame_info *info, + unsigned int idx); =20 static int sh_css_pipe_get_output_frame_info(struct ia_css_pipe *pipe, @@ -305,8 +303,8 @@ create_host_yuvpp_pipeline(struct ia_css_pipe *pipe); static unsigned int sh_css_get_sw_interrupt_value(unsigned int irq); =20 -static struct ia_css_binary *ia_css_pipe_get_shading_correction_binary( - const struct ia_css_pipe *pipe); +static struct ia_css_binary * +ia_css_pipe_get_shading_correction_binary(const struct ia_css_pipe *pipe); =20 static struct ia_css_binary * ia_css_pipe_get_s3a_binary(const struct ia_css_pipe *pipe); @@ -470,10 +468,9 @@ sh_css_config_input_network_2400(struct ia_css_stream = *stream) if (pipe->pipeline.stages) binary =3D pipe->pipeline.stages->binary; =20 - err =3D ia_css_isys_convert_stream_format_to_mipi_format( - stream->config.input_config.format, - stream->csi_rx_config.comp, - &fmt_type); + err =3D ia_css_isys_convert_stream_format_to_mipi_format(stream->config.i= nput_config.format, + stream->csi_rx_config.comp, + &fmt_type); if (err) return err; sh_css_sp_program_input_circuit(fmt_type, @@ -504,9 +501,9 @@ sh_css_config_input_network_2400(struct ia_css_stream *= stream) return 0; } =20 -static unsigned int csi2_protocol_calculate_max_subpixels_per_line( - enum atomisp_input_format format, - unsigned int pixels_per_line) +static unsigned int +csi2_protocol_calculate_max_subpixels_per_line(enum atomisp_input_format f= ormat, + unsigned int pixels_per_line) { unsigned int rval; =20 @@ -629,9 +626,9 @@ static unsigned int csi2_protocol_calculate_max_subpixe= ls_per_line( return rval; } =20 -static bool sh_css_translate_stream_cfg_to_input_system_input_port_id( - struct ia_css_stream_config *stream_cfg, - ia_css_isys_descr_t *isys_stream_descr) +static bool +sh_css_translate_stream_cfg_to_input_system_input_port_id(struct ia_css_st= ream_config *stream_cfg, + ia_css_isys_descr_t *isys_stream_descr) { bool rc; =20 @@ -665,9 +662,9 @@ static bool sh_css_translate_stream_cfg_to_input_system= _input_port_id( return rc; } =20 -static bool sh_css_translate_stream_cfg_to_input_system_input_port_type( - struct ia_css_stream_config *stream_cfg, - ia_css_isys_descr_t *isys_stream_descr) +static bool +sh_css_translate_stream_cfg_to_input_system_input_port_type(struct ia_css_= stream_config *stream_cfg, + ia_css_isys_descr_t *isys_stream_descr) { bool rc; =20 @@ -692,10 +689,10 @@ static bool sh_css_translate_stream_cfg_to_input_syst= em_input_port_type( return rc; } =20 -static bool sh_css_translate_stream_cfg_to_input_system_input_port_attr( - struct ia_css_stream_config *stream_cfg, - ia_css_isys_descr_t *isys_stream_descr, - int isys_stream_idx) +static bool +sh_css_translate_stream_cfg_to_input_system_input_port_attr(struct ia_css_= stream_config *stream_cfg, + ia_css_isys_descr_t *isys_stream_descr, + int isys_stream_idx) { bool rc; =20 @@ -726,9 +723,9 @@ static bool sh_css_translate_stream_cfg_to_input_system= _input_port_attr( unsigned int fmt_type; =20 err =3D ia_css_isys_convert_stream_format_to_mipi_format( - stream_cfg->isys_config[isys_stream_idx].format, - MIPI_PREDICTOR_NONE, - &fmt_type); + stream_cfg->isys_config[isys_stream_idx].format, + MIPI_PREDICTOR_NONE, + &fmt_type); if (err) rc =3D false; =20 @@ -740,9 +737,8 @@ static bool sh_css_translate_stream_cfg_to_input_system= _input_port_attr( if (IS_ISP2401) isys_stream_descr->online =3D stream_cfg->online; =20 - err |=3D ia_css_isys_convert_compressed_format( - &stream_cfg->source.port.compression, - isys_stream_descr); + err |=3D ia_css_isys_convert_compressed_format(&stream_cfg->source.port.= compression, + isys_stream_descr); if (err) rc =3D false; =20 @@ -750,9 +746,9 @@ static bool sh_css_translate_stream_cfg_to_input_system= _input_port_attr( isys_stream_descr->metadata.enable =3D false; if (stream_cfg->metadata_config.resolution.height > 0) { err =3D ia_css_isys_convert_stream_format_to_mipi_format( - stream_cfg->metadata_config.data_type, - MIPI_PREDICTOR_NONE, - &fmt_type); + stream_cfg->metadata_config.data_type, + MIPI_PREDICTOR_NONE, + &fmt_type); if (err) rc =3D false; isys_stream_descr->metadata.fmt_type =3D fmt_type; @@ -787,10 +783,11 @@ static bool sh_css_translate_stream_cfg_to_input_syst= em_input_port_attr( return rc; } =20 -static bool sh_css_translate_stream_cfg_to_input_system_input_port_resolut= ion( - struct ia_css_stream_config *stream_cfg, - ia_css_isys_descr_t *isys_stream_descr, - int isys_stream_idx) +static bool +sh_css_translate_stream_cfg_to_input_system_input_port_resolution( + struct ia_css_stream_config *stream_cfg, + ia_css_isys_descr_t *isys_stream_descr, + int isys_stream_idx) { unsigned int bits_per_subpixel; unsigned int max_subpixels_per_line; @@ -840,11 +837,11 @@ static bool sh_css_translate_stream_cfg_to_input_syst= em_input_port_resolution( return true; } =20 -static bool sh_css_translate_stream_cfg_to_isys_stream_descr( - struct ia_css_stream_config *stream_cfg, - bool early_polling, - ia_css_isys_descr_t *isys_stream_descr, - int isys_stream_idx) +static bool +sh_css_translate_stream_cfg_to_isys_stream_descr(struct ia_css_stream_conf= ig *stream_cfg, + bool early_polling, + ia_css_isys_descr_t *isys_stream_descr, + int isys_stream_idx) { bool rc; =20 @@ -2256,8 +2253,7 @@ alloc_continuous_frames(struct ia_css_pipe *pipe, boo= l init_time) ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "alloc_continuous_frames() IA_CSS_FRAME_FORMAT_RAW_PACKED\n"); ref_info.format =3D IA_CSS_FRAME_FORMAT_RAW_PACKED; - } else - { + } else { ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "alloc_continuous_frames() IA_CSS_FRAME_FORMAT_RAW\n"); ref_info.format =3D IA_CSS_FRAME_FORMAT_RAW; @@ -7856,8 +7852,7 @@ ia_css_stream_create(const struct ia_css_stream_confi= g *stream_config, =20 /* check if mipi size specified */ if (stream_config->mode =3D=3D IA_CSS_INPUT_MODE_BUFFERED_SENSOR) - if (!IS_ISP2401 || !stream_config->online) - { + if (!IS_ISP2401 || !stream_config->online) { unsigned int port =3D (unsigned int)stream_config->source.port.port; =20 if (port >=3D N_MIPI_PORT_ID) { --=20 2.53.0