From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 654E93DEAE0 for ; Fri, 1 May 2026 17:08:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777655316; cv=none; b=ndnANHhpuBAhwiOLw+aneO6ikzXdmIaEvDbo/6hQ7+P9w44R63i65WFV5bLvDnx4ryYGfpFmicaRxtYZ2oUJPHKffWmQ8wP3q4ppEq2W5lBzE452mbrWMZljWWDmpbagxg0xnBWqwR6HzKjdU01BDSyeRLAjs85ZK9JAbm98vxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777655316; c=relaxed/simple; bh=5YlxqVUZMmAu7OzHvewNrtOrDhqyNa39uWLh5eD7InY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j5BOGuHawaJEGfOX9XmCtIm3j3cTbiuA7WXtO+tvkRwYLprSzKn90/TEN+6vk911i+etnAS+Yky6jsdHC2verWkmxfrRItcm3tdDCCihBUjjx+0qcTXiW8FDwWcLx7JcbNSyx5xHsN3skA2ZPBnnS+aS1d4nVpygKUv60NDNSNU= 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=nJHiCfSX; arc=none smtp.client-ip=209.85.210.169 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="nJHiCfSX" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-82748257f5fso2393954b3a.1 for ; Fri, 01 May 2026 10:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777655315; x=1778260115; 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=r3jBh2i5QcfKLncxdlwHNU4owYDErQsEOr4uUJaqJO4=; b=nJHiCfSX9Bel0aEnZu8dmMiiqSt3wwpyxndDM3NQzJ7h/8DxORcU9dAe5uqRSARDKB jPMXzAC0rM+lki9r7QCwGAQdAQGDdHwCMz8ITOTWv9smNHL/OGj+6SRsqHhSpZ1Kc8jg 4vAkrR/YB2d7S76wQmX9krueggMZqR1IJF1NvYs2AVRPtBj/tXRHMp3PcAUxBVbrWE+K x+UI9j/w3PKSOtyvB9ZF+vOkiUC6e1RPRwGWNEsXRkksfZVnWrFyG3pZyxCRXQRWCaN/ ykF2VPcJJXojX6SRNGLkiUOH07+7OMVpiJN7VPib/n0vjeZyEcmQKcaK4azW+bOjkA8H xCbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777655315; x=1778260115; 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=r3jBh2i5QcfKLncxdlwHNU4owYDErQsEOr4uUJaqJO4=; b=OxdygHXnIF3+NOq6nMJJoLXUA8JckMptYqhX/e7VWM4zkIjv0x/qY++7bfrDvagjvt jI0D4U8uLHxXAhiWRWIk8J2ImuNnlbcWR6Ujn6dDgh4VMl+5368MzczEb8NJpToK6NUZ Vdoy8bKBNqT6YW0C2Oi9lWq0eM16XauKPAATVyzBmZhqvFRnGT/ChEwEDufPZCyyIg/g 1Oye6DvGRbyKxTkJaHJlLmwZ4M9OeECQCZQoPqSZA6JLMu4jSgr6aNhw1P/2TNjbXOBL fhrJ+SdvaelrFGUabAsgRCiCtAw752osp60+EjgaXyp/8w0cJOSGa5hgRVof70Vv+acS uNMw== X-Forwarded-Encrypted: i=1; AFNElJ/wEZ+xWlEFuVNjEJ2xec43u36T0Tp6UdF1M5yAI6HYOD9y+QwIk3Y/nkLZl+Rz8B1Z9xKn7iOrUejsXTs=@vger.kernel.org X-Gm-Message-State: AOJu0YxHnXN9CbpJ3QvtB6qochSAGetCNLvEMTjiJt04RReeNAuQ2fOk aERUgoe0RgN8EiSo3oKeyuJLstVDPGQ+xq7nGck4II6wqQ/GdmNdNBvH X-Gm-Gg: AeBDiesM+1A34WowZkx80qDnQo8r9VGGDoAXGahYxJCt1NnCjhFAJbShL2TEYXuOAFM /NdGBvbPWxyzkLzvxo9OHn1fCEwCWL6C2SpF1caWQv/xZWF03aFPxguBi7GNpHUJJaRfyW5RBSV A2VJmKO2Hx+oj645XJ/lu6wjU7ouGCuKsZV1mq9QCCG78yV8gnBaQ8sPUfmWECXPD6pFmdyK1G0 afP5FQvK6irRYPdZ+9LldNo9lFNgQiKTiALDCyGfnpzFJz+LzEQoziT/nVa5LN8xJcDNCh9Uiq6 udzfgAdjyyBcHFYWo4p96tuvls+J5yML9n8YP7pitSQs2VqouwSZGCIGwDIvV6MCvhKwDc4klBY n1i8S+Os2uMYkEBB25EOD3l5rpmaW8BfmkBt5pQO+XGp6Ds7Brompjo/siJD5VaoQ0nlg5OPQhO PvDYvWA2Xk5D+HuRT6RGfQuCAcFAQ= X-Received: by 2002:a05:6a00:b488:b0:7a9:d8a8:992a with SMTP id d2e1a72fcca58-834fff38ebfmr7018376b3a.13.1777655314499; Fri, 01 May 2026 10:08:34 -0700 (PDT) Received: from localhost ([2409:40d1:ac:8595:d46b:293a:655a:c877]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83515b87869sm3368321b3a.61.2026.05.01.10.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 May 2026 10:08:34 -0700 (PDT) From: Ansh Bagga To: hansg@kernel.org, mchehab@kernel.org, gregkh@linuxfoundation.org Cc: sakari.ailus@linux.intel.com, andy@kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ansh Bagga Subject: [PATCH] staging: media: atomisp: fix block comment formatting Date: Fri, 1 May 2026 22:38:02 +0530 Message-ID: <20260501170802.554963-1-ansh.bagga.linux@gmail.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix checkpatch warnings regarding block comment alignment. Block comments should use a trailing '*/' on a separate line to adhere to the kernel coding style guidelines. Signed-off-by: Ansh Bagga --- .../staging/media/atomisp/pci/atomisp_cmd.c | 41 ++++++++++++------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_cmd.c b/drivers/staging/media/atomisp/pci/atomisp_cmd.c index fec369575d88..37ccc95076a7 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; - /* 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); err = atomisp_alloc_css_stat_bufs(asd, ATOMISP_INPUT_STREAM_GENERAL); @@ -1394,7 +1396,8 @@ static void atomisp_update_grid_info(struct atomisp_sub_device *asd, /* Failure for 3A buffers does not influence DIS buffers */ if (asd->params.s3a_output_bytes != 0) { /* For SOC sensor happens s3a_output_bytes == 0, - * using if condition to exclude false error log */ + * using if condition to exclude false error log + */ dev_err(isp->dev, "Failed to allocate memory for 3A statistics\n"); } goto err; @@ -1687,8 +1690,9 @@ int atomisp_3a_stat(struct atomisp_sub_device *asd, int flag, if (atomisp_compare_grid(asd, &config->grid_info) != 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. */ + * grid info, we tell the caller to reset the grid size and + * try again + */ return -EAGAIN; } @@ -2463,8 +2467,9 @@ int atomisp_css_cp_dvs2_coefs(struct atomisp_sub_device *asd, 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. */ + * grid info, we tell the caller to reset the grid size and + * try again. + */ return -EAGAIN; } @@ -2519,8 +2524,9 @@ int atomisp_css_cp_dvs2_coefs(struct atomisp_sub_device *asd, memcmp(&dvs2_coefs.grid, cur, sizeof(dvs2_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. */ + * grid info, we tell the caller to reset the grid size and + * try again. + */ return -EAGAIN; } @@ -3027,7 +3033,8 @@ int atomisp_param(struct atomisp_sub_device *asd, int flag, /* 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 = asd-> stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream_info. metadata_info.resolution.height; @@ -3278,7 +3285,8 @@ atomisp_bytesperline_to_padded_width(unsigned int bytesperline, 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. */ + * 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: @@ -3315,8 +3323,9 @@ atomisp_v4l2_framebuffer_to_css_frame(const struct v4l2_framebuffer *arg, arg->fmt.bytesperline, sh_format); /* 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 */ + * 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 = -ENOMEM; @@ -3926,7 +3935,8 @@ static inline int atomisp_set_sensor_mipi_to_isp( } /* Compatibility for sensors which provide no media bus code - * in s_mbus_framefmt() nor support pad formats. */ + * in s_mbus_framefmt() nor support pad formats. + */ if (mipi_info && mipi_info->input_format != -1) { bayer_order = mipi_info->raw_bayer_order; @@ -4385,7 +4395,8 @@ int atomisp_set_fmt(struct video_device *vdev, struct v4l2_format *f) V4L2_SEL_TGT_CROP); /* Try to enable YUV downscaling if ISP input is 10 % (either - * width or height) bigger than the desired result. */ + * 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 || -- 2.54.0