From nobody Wed Feb 11 07:48:21 2026 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) (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 1C52831A046 for ; Tue, 10 Feb 2026 11:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770723383; cv=none; b=Q+Un/baO9eQb+vmR2spWGk/T0oNh0V9LiiL7rg8gSRBDoYjYqHlaEjq4jhuj4BCpZerj2UC1p3bE77WR7VTjfVH+e9HnWiH8MiE9N3hkmEBw00SkDUPEwnarF2SY1pRNjHbqk33JcYENHxAk8RIdlAPNrbfYS5KOH3EqQq2L0gw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770723383; c=relaxed/simple; bh=6UZF0hPHXXbabgndO/pADRwx6wnGa8jhCrhXvoluDNU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ose5h0qg6C9VYN4LqSRSN4c82VnuybTEXYLJ4fewG9APPgukIBwcOHfCDN3z6nNUkmHHRHkysyMlN4FFcsXuQJp7uSurO+Dp7Giv91WCPZYT6Syl26zhi73BbK2Dl+rvFuuwQVXIuDSNNrOs+JEhXP76U3GPfQtdBpLhoLSRbQI= 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=nbdLt5kb; arc=none smtp.client-ip=209.85.210.194 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="nbdLt5kb" Received: by mail-pf1-f194.google.com with SMTP id d2e1a72fcca58-82311f4070cso3687143b3a.0 for ; Tue, 10 Feb 2026 03:36:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770723381; x=1771328181; 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=2ySLvsFg7TLrIk93eB4lu1hrX+Zw7l/j16aUMMMVV/0=; b=nbdLt5kb25GuSeAkfIXsi+vm0nJ4radRtcdFNdC2t4lgO2gHSPR6HgmWYrB4snZUeg i4+FI5d456qKH92iNjRpmZgBp2KDgYDuXWDeVIkMwnFlUpZtnwpczzMLGKORFAKfrFVp HZYF+KoJY7himN4FzSD1CKIe+TEYQ5aeEElCMMPDAjs9ETyyRGsWgnOIbg1tmS6oINO6 RJLzH4nAMfOE83Jn6z5KJljE/3ThvWhjU96kKi6JWXisQtuDQVFbZMLmPcxLbFnuOBhp yfY3FB0iZuvk2JRKWWVyxiznFEx/fHsMQq4Joia3vqyMNCxYxODH6qifFXxI14hSoACp J1ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770723381; x=1771328181; 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=2ySLvsFg7TLrIk93eB4lu1hrX+Zw7l/j16aUMMMVV/0=; b=wagaf7XGXWMzzTD6N8FCwIzE+Tfpt1mKVydjm1Dpp6bd7135un6sdndr9cWqu7hAhx q5In6Jqd5l/lMWv2eUvSywkGwuay+gCkgFrqgFX7+UpqGlEKiIJkC0yyqnW+IPPPfRqZ Oa1enEj5F+J6mw26eQ9XzAzrPfU9nY8IB7HiXvrOag33tnDhX1Y0WSRVMHJcRli0T03g Yaaw5P4ZTKvx8sN+lZ2SXvqkNa5XWH2Ip0cU9qto+ltCBQYtIpY3ZIKaP8K7NG8XuN1R VtDs9XFTkyqV/Tnx3Q7IaIPZCZSlMO954YxLoyuPr881K9we94/4K3F+th/KPikQBTqz RypQ== X-Forwarded-Encrypted: i=1; AJvYcCXqUfFghmEELdP74PKtcJGkzracYC45LA6C7lMqkmBSm5ywPIDonO/cCuMAgi3TPoRLEuJ9C49g5HNRr3M=@vger.kernel.org X-Gm-Message-State: AOJu0YyA9HsHekJCkDoaL3qgk/aT1d9weYtAor9cDqZA+wLfLiCfUe31 w1kjNXE8ULx6ETGjyKaNWAGzprgeLeNcKgSjS+xmso46UZuBRk63Xn0v X-Gm-Gg: AZuq6aJbEBtxZV9eMj+egpjhOXJR1XdfSboxpN4imDfKdnZpgJE4CLfv0N6KZP1Bx7U Rje6tveB2d6quIgqKD7EUiSK8Qn//iBnEAJcVJYPr48YllT0MZARZWbNSC+3nz+MvpXvSSlkN+L GNlB+RQmz9jF0piHlp/exyQNA5w+yEBdB8PIXBHM0ckOjefB23KjYiUHOatWfh6oI8/c7K2FQFK PfXY0av1m2xgStu8zZ8Mw85R0msMcTAw+CsoR4KQmLO2AWVKCtVJJDe60sTlOp/0AomfSe3hPff W9vV2VxFO0CNljsax1cw431/phFtlRb9SNphRBM/0QL/78Pat3gZXb232XXfL6lJ9ub8N/LezfD 3/eBs5oX94X/Ga8a2MKvrpCU2eJKhJx6CGEy8MJOPKNONk4fOnxfR0x5vyT3xTUrTpN69iRptUC 3Jpgfn1uSxx8rvSjur2aE3YIw= X-Received: by 2002:a05:6a00:e13:b0:81e:f280:f341 with SMTP id d2e1a72fcca58-824873ca992mr2256942b3a.6.1770723381341; Tue, 10 Feb 2026 03:36:21 -0800 (PST) Received: from deadibone.. ([118.141.233.34]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82441884b75sm14671935b3a.39.2026.02.10.03.36.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Feb 2026 03:36:21 -0800 (PST) From: Ethan Lam To: hansg@kernel.org, mchehab@kernel.org, gregkh@linuxfoundation.org Cc: sakari.ailus@linux.intel.com, andy@kernel.org, hverkuil@kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ethan Lam Subject: [PATCH v3] staging: media: atomisp: fix block comment style Date: Tue, 10 Feb 2026 19:35:57 +0800 Message-ID: <20260210113557.71677-1-ethanlxkernel@gmail.com> X-Mailer: git-send-email 2.43.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" Fixed all block comment style warnings by checkpatch.pl. Kept original indentation in comments (requested by Andy Shevchenko) Signed-off-by: Ethan Lam --- .../staging/media/atomisp/pci/atomisp_cmd.c | 60 ++++++++++++------- 1 file changed, 39 insertions(+), 21 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_cmd.c b/drivers/stag= ing/media/atomisp/pci/atomisp_cmd.c index 3a4eb4f6d3be..c67fa4cc3f06 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_cmd.c +++ b/drivers/staging/media/atomisp/pci/atomisp_cmd.c @@ -1380,8 +1380,10 @@ static void atomisp_update_grid_info(struct atomisp_= sub_device *asd, if (atomisp_css_get_grid_info(asd, pipe_id)) return; =20 - /* We must free all buffers because they no longer match - the grid size. */ + /* + * We must free all buffers because they no longer match + * the grid size. + */ atomisp_css_free_stat_buffers(asd); =20 err =3D atomisp_alloc_css_stat_bufs(asd, ATOMISP_INPUT_STREAM_GENERAL); @@ -1393,8 +1395,10 @@ static void atomisp_update_grid_info(struct atomisp_= sub_device *asd, if (atomisp_alloc_3a_output_buf(asd)) { /* Failure for 3A buffers does not influence DIS buffers */ if (asd->params.s3a_output_bytes !=3D 0) { - /* For SOC sensor happens s3a_output_bytes =3D=3D 0, - * using if condition to exclude false error log */ + /* + * For SOC sensor happens s3a_output_bytes =3D=3D 0, + * using if condition to exclude false error log + */ dev_err(isp->dev, "Failed to allocate memory for 3A statistics\n"); } goto err; @@ -1686,9 +1690,11 @@ int atomisp_3a_stat(struct atomisp_sub_device *asd, = int flag, return -EINVAL; =20 if (atomisp_compare_grid(asd, &config->grid_info) !=3D 0) { - /* If the grid info in the argument differs from the current - grid info, we tell the caller to reset the grid size and - try again. */ + /* + * If the grid info in the argument differs from the current + * grid info, we tell the caller to reset the grid size and + * try again. + */ return -EAGAIN; } =20 @@ -2462,9 +2468,11 @@ int atomisp_css_cp_dvs2_coefs(struct atomisp_sub_dev= ice *asd, if (sizeof(*cur) !=3D sizeof(coefs->grid) || memcmp(&coefs->grid, cur, sizeof(coefs->grid))) { dev_err(asd->isp->dev, "dvs grid mismatch!\n"); - /* If the grid info in the argument differs from the current - grid info, we tell the caller to reset the grid size and - try again. */ + /* + * If the grid info in the argument differs from the current + * grid info, we tell the caller to reset the grid size and + * try again. + */ return -EAGAIN; } =20 @@ -3028,9 +3036,11 @@ int atomisp_param(struct atomisp_sub_device *asd, in= t flag, =20 atomisp_curr_user_grid_info(asd, &config->info); =20 - /* We always return the resolution and stride even if there is + /* + * We always return the resolution and stride even if there is * no valid metadata. This allows the caller to get the - * information needed to allocate user-space buffers. */ + * information needed to allocate user-space buffers. + */ config->metadata_config.metadata_height =3D asd-> stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream_info. metadata_info.resolution.height; @@ -3280,8 +3290,10 @@ atomisp_bytesperline_to_padded_width(unsigned int by= tesperline, return bytesperline / 2; case IA_CSS_FRAME_FORMAT_RGBA888: return bytesperline / 4; - /* The following cases could be removed, but we leave them - in to document the formats that are included. */ + /* + * The following cases could be removed, but we leave them + * in to document the formats that are included. + */ case IA_CSS_FRAME_FORMAT_NV11: case IA_CSS_FRAME_FORMAT_NV12: case IA_CSS_FRAME_FORMAT_NV16: @@ -3317,9 +3329,11 @@ atomisp_v4l2_framebuffer_to_css_frame(const struct v= 4l2_framebuffer *arg, padded_width =3D atomisp_bytesperline_to_padded_width( arg->fmt.bytesperline, sh_format); =20 - /* Note: the padded width on an ia_css_frame is in elements, not in - 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 */ + /* + * Note: the padded width on an ia_css_frame is in elements, not in + * 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)) { ret =3D -ENOMEM; @@ -3928,8 +3942,10 @@ static inline int atomisp_set_sensor_mipi_to_isp( asd->stream_env[stream_id].isys_info[1].height); } =20 - /* Compatibility for sensors which provide no media bus code - * in s_mbus_framefmt() nor support pad formats. */ + /* + * Compatibility for sensors which provide no media bus code + * in s_mbus_framefmt() nor support pad formats. + */ if (mipi_info && mipi_info->input_format !=3D -1) { bayer_order =3D mipi_info->raw_bayer_order; =20 @@ -4387,8 +4403,10 @@ int atomisp_set_fmt(struct video_device *vdev, struc= t v4l2_format *f) ATOMISP_SUBDEV_PAD_SINK, V4L2_SEL_TGT_CROP); =20 - /* Try to enable YUV downscaling if ISP input is 10 % (either - * width or height) bigger than the desired result. */ + /* + * Try to enable YUV downscaling if ISP input is 10 % (either + * width or height) bigger than the desired result. + */ if (!IS_MOFD || isp_sink_crop.width * 9 / 10 < f->fmt.pix.width || isp_sink_crop.height * 9 / 10 < f->fmt.pix.height || --=20 2.43.0