From: Akash Sukhavasi <akash.sukhavasi@gmail.com>
To: dmitry.torokhov@gmail.com
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Akash Sukhavasi <akash.sukhavasi@gmail.com>
Subject: [PATCH 0/2] Input: analog: fix coding style violations
Date: Mon, 13 Apr 2026 17:19:26 -0500 [thread overview]
Message-ID: <20260413221928.21748-1-akash.sukhavasi@gmail.com> (raw)
This patch series resolves 15 errors and addresses several warnings
reported by checkpatch.pl in the drivers/input/joystick/analog.c driver.
The original code contained multiple instances of trailing statements
on single-line conditionals, as well as minor indentation and spacing
issues that are in violation of kernel coding style.
This series breaks the cleanups into two logical parts:
1. Fixing trailing statements (moving them to their own lines).
2. Correcting indentation and parenthesis spacing.
Several warnings are intentionally left unaddressed, as they require
semantic or functional changes outside the scope of this formatting
cleanup:
- printk() to pr_warn()/pr_info() conversions
- simple_strtoul() to kstrtoul() conversion
- Filename strings embedded in printk() messages
- Quoted string split across lines
- Suspect indent on fail3 label
Tested with: scripts/checkpatch.pl --strict on the final patch.
Signed-off-by: Akash Sukhavasi <akash.sukhavasi@gmail.com>
---
Akash Sukhavasi (2):
Input: analog: Fix coding style - trailing statements on same line
Input: analog: Fix coding style - indentation and parenthesis spacing
drivers/input/joystick/analog.c | 49 +++++++++++++++++++++++----------
1 file changed, 34 insertions(+), 15 deletions(-)
--
2.53.0
next reply other threads:[~2026-04-13 22:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-13 22:19 Akash Sukhavasi [this message]
2026-04-13 22:19 ` [PATCH 1/2] Input: analog: Fix coding style - trailing statements on same line Akash Sukhavasi
2026-04-13 22:19 ` [PATCH 2/2] Input: analog: Fix coding style - indentation and parenthesis spacing Akash Sukhavasi
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=20260413221928.21748-1-akash.sukhavasi@gmail.com \
--to=akash.sukhavasi@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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