linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] staging: media: atomisp: fix coding style in ia_css_output.host.c
@ 2025-06-22  3:42 LiangCheng Wang
  2025-06-22 20:42 ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: LiangCheng Wang @ 2025-06-22  3:42 UTC (permalink / raw)
  To: Andy Shevchenko, Hans de Goede, Mauro Carvalho Chehab,
	Sakari Ailus, Greg Kroah-Hartman
  Cc: linux-media, linux-kernel, linux-staging, LiangCheng Wang

Fix multiple checkpatch.pl ERRORs and coding style issues:

- Use tabs instead of spaces for indentation
- Move trailing `if` statements to multiline format
- Remove excessive space between type and asterisk in function
  arguments

This cleanup improves code readability and follows Linux kernel
coding standards.

Signed-off-by: LiangCheng Wang <zaq14760@gmail.com>
---
This patch fixes coding style violations detected by checkpatch.pl in the atomisp driver under staging.

- Use tabs instead of spaces for indentation
- Move trailing `if` statements to multiline format
- Remove excessive spaces between type and asterisk in function parameters

This cleanup improves code readability and follows Linux kernel coding standards.
---
Changes in v3:
- Removed extra spaces between type and asterisk (e.g., `*to`) in function
  declarations, as pointed out by Andy Shevchenko
- Update commit message to reflect all the coding style fixes
- Link to v2: https://lore.kernel.org/r/20250621-bar-v2-1-4e6cfc779614@gmail.com

Changes in v2:
- Fix patch subject prefix to "staging: media: atomisp:" to comply with media CI style.
- No other functional changes.

Link to v1: https://lore.kernel.org/r/20250621-bar-v1-1-5a3e7004462c@gmail.com
---
 .../atomisp/pci/isp/kernels/output/output_1.0/ia_css_output.host.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/media/atomisp/pci/isp/kernels/output/output_1.0/ia_css_output.host.c b/drivers/staging/media/atomisp/pci/isp/kernels/output/output_1.0/ia_css_output.host.c
index d09365e0c47104dbffbd455bfd649b9079f88c9c..2af83d51b5b3a6ad2edf9b835a342455e7536f6c 100644
--- a/drivers/staging/media/atomisp/pci/isp/kernels/output/output_1.0/ia_css_output.host.c
+++ b/drivers/staging/media/atomisp/pci/isp/kernels/output/output_1.0/ia_css_output.host.c
@@ -73,8 +73,8 @@ int ia_css_output0_config(struct sh_css_isp_output_isp_config       *to,
 	return ia_css_output_config(to, (const struct ia_css_output_configuration *)from, size);
 }
 
-int ia_css_output1_config(struct sh_css_isp_output_isp_config       *to,
-		          const struct ia_css_output1_configuration *from,
+int ia_css_output1_config(struct sh_css_isp_output_isp_config *to,
+			  const struct ia_css_output1_configuration *from,
 			  unsigned int size)
 {
 	return ia_css_output_config(to, (const struct ia_css_output_configuration *)from, size);
@@ -127,7 +127,8 @@ ia_css_output_dump(
     const struct sh_css_isp_output_params *output,
     unsigned int level)
 {
-	if (!output) return;
+	if (!output)
+		return;
 	ia_css_debug_dtrace(level, "Horizontal Output Flip:\n");
 	ia_css_debug_dtrace(level, "\t%-32s = %d\n",
 			    "enable", output->enable_hflip);

---
base-commit: 3f75bfff44be0646580fe4efda45d646f9c1693b
change-id: 20250621-bar-573b8b40fb80

Best regards,
-- 
LiangCheng Wang <zaq14760@gmail.com>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] staging: media: atomisp: fix coding style in ia_css_output.host.c
  2025-06-22  3:42 [PATCH v3] staging: media: atomisp: fix coding style in ia_css_output.host.c LiangCheng Wang
@ 2025-06-22 20:42 ` Andy Shevchenko
  2025-06-23 13:53   ` LiangCheng Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2025-06-22 20:42 UTC (permalink / raw)
  To: LiangCheng Wang
  Cc: Andy Shevchenko, Hans de Goede, Mauro Carvalho Chehab,
	Sakari Ailus, Greg Kroah-Hartman, linux-media, linux-kernel,
	linux-staging

On Sun, Jun 22, 2025 at 6:42 AM LiangCheng Wang <zaq14760@gmail.com> wrote:
>
> Fix multiple checkpatch.pl ERRORs and coding style issues:
>
> - Use tabs instead of spaces for indentation
> - Move trailing `if` statements to multiline format
> - Remove excessive space between type and asterisk in function
>   arguments
>
> This cleanup improves code readability and follows Linux kernel
> coding standards.

Change looks okay now. The question is are there only these
problematic places or more? Can you double check the entire driver for
these?

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3] staging: media: atomisp: fix coding style in ia_css_output.host.c
  2025-06-22 20:42 ` Andy Shevchenko
@ 2025-06-23 13:53   ` LiangCheng Wang
  0 siblings, 0 replies; 3+ messages in thread
From: LiangCheng Wang @ 2025-06-23 13:53 UTC (permalink / raw)
  To: andy
  Cc: zaq14760, hansg, mchehab, sakari.ailus, gregkh, linux-media,
	linux-kernel, linux-staging

Subject: Re: [PATCH v3] staging: media: atomisp: fix coding style in ia_css_output.host.c
In-Reply-To: <CAHp75VcFSbLwqot0Rrm=141Y-mCQUuFqNGn=DnfKSSYp-31vcg@mail.gmail.com>

Dear Andy,

Thank you for your review.

I'll go through the entire driver again and check for similar issues,
such as extra spacing between types and asterisks. If I find more,
I’ll send an updated v4 patch accordingly.

Best regards,
LiangCheng Wang

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-23 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-22  3:42 [PATCH v3] staging: media: atomisp: fix coding style in ia_css_output.host.c LiangCheng Wang
2025-06-22 20:42 ` Andy Shevchenko
2025-06-23 13:53   ` LiangCheng Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).