From: Oskar Ray-Frayssinet <rayfraytech@gmail.com>
To: hansg@kernel.org, mchehab@kernel.org
Cc: sakari.ailus@linux.intel.com, andy@kernel.org,
gregkh@linuxfoundation.org, linux-media@vger.kernel.org,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Oskar Ray-Frayssinet <rayfraytech@gmail.com>
Subject: [PATCH v2] staging: media: atomisp: fix block comment style in refcount.c
Date: Tue, 10 Mar 2026 21:35:46 +0100 [thread overview]
Message-ID: <20260310203546.8849-1-rayfraytech@gmail.com> (raw)
In-Reply-To: <20260309215516.6091-1-rayfraytech@gmail.com>
Fix block comment formatting to comply with kernel coding style:
- Move text from opening '/*' line to a separate continuation line
- Add leading '*' on continuation lines
- Move trailing '*/' to a separate line
- Replace commented-out code with #if 0 ... #endif blocks
Signed-off-by: Oskar Ray-Frayssinet <rayfraytech@gmail.com>
---
.../atomisp/pci/base/refcount/src/refcount.c | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/base/refcount/src/refcount.c b/drivers/staging/media/atomisp/pci/base/refcount/src/refcount.c
index 00e8a73f413e..68c3bc181a96 100644
--- a/drivers/staging/media/atomisp/pci/base/refcount/src/refcount.c
+++ b/drivers/staging/media/atomisp/pci/base/refcount/src/refcount.c
@@ -15,7 +15,8 @@
#include "ia_css_debug.h"
-/* TODO: enable for other memory aswell
+/*
+ * TODO: enable for other memory aswell
* now only for ia_css_ptr
*/
struct ia_css_refcount_entry {
@@ -99,10 +100,11 @@ void ia_css_refcount_uninit(void)
*/
entry = myrefcount.items + i;
if (entry->data != mmgr_NULL) {
- /* ia_css_debug_dtrace(IA_CSS_DBG_TRACE,
- * "ia_css_refcount_uninit: freeing (%x)\n",
- * entry->data);
- */
+#if 0
+ ia_css_debug_dtrace(IA_CSS_DBG_TRACE,
+ "ia_css_refcount_uninit: freeing (%x)\n",
+ entry->data);
+#endif
hmm_free(entry->data);
entry->data = mmgr_NULL;
entry->count = 0;
@@ -174,9 +176,10 @@ bool ia_css_refcount_decrement(s32 id, ia_css_ptr ptr)
if (entry->count > 0) {
entry->count -= 1;
if (entry->count == 0) {
- /* ia_css_debug_dtrace(IA_CSS_DBEUG_TRACE,
- * "ia_css_refcount_decrement: freeing\n");
- */
+#if 0
+ ia_css_debug_dtrace(IA_CSS_DBEUG_TRACE,
+ "ia_css_refcount_decrement: freeing\n");
+#endif
hmm_free(ptr);
entry->data = mmgr_NULL;
entry->id = 0;
--
2.43.0
next prev parent reply other threads:[~2026-03-10 20:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 21:55 [PATCH] staging: atomisp: fix block comment style in refcount.c Oskar Ray-Frayssinet
2026-03-10 11:43 ` Andy Shevchenko
2026-03-10 20:35 ` Oskar Ray-Frayssinet [this message]
2026-03-10 22:48 ` [PATCH v2] staging: media: " Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260310203546.8849-1-rayfraytech@gmail.com \
--to=rayfraytech@gmail.com \
--cc=andy@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox