From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Chethan C <mail.chethanc@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Kees Cook <kees@kernel.org>,
Hans Verkuil <hverkuil+cisco@kernel.org>,
Petr Mladek <pmladek@suse.com>,
Osama Albahrani <osalbahr@gmail.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-media@vger.kernel.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6] staging: media: av7110: fix coding style
Date: Fri, 27 Mar 2026 13:10:56 +0200 [thread overview]
Message-ID: <acZlwLpm9oMODXjc@ashevche-desk.local> (raw)
In-Reply-To: <20260324184259.694280-1-mail.chethanc@gmail.com>
On Wed, Mar 25, 2026 at 12:12:44AM +0530, Chethan C wrote:
> Fix indentation and alignment issues reported by checkpatch.pl.
>
> Rename enums av7110_rec_play_state, av7110_type_rec_play_format,
> and av7110_encoder_command to follow kernel naming style.
>
> Rename wssData and wssMode to wss_data and wss_mode to avoid
> camelCase identifiers.
TL;DR: one hunk should be not touched (see below).
Otherwise LGTM.
...
> @@ -551,7 +573,7 @@ static ssize_t dvb_aplay(struct av7110 *av7110, const char __user *buf,
> if (nonblock)
> return count - todo;
> if (wait_event_interruptible(av7110->aout.queue,
> - (dvb_ringbuffer_free(&av7110->aout) >= 20 * 1024)))
> + (dvb_ringbuffer_free(&av7110->aout) >= 20 * 1024)))
This change is wrong.
Also one may consider to replace 20*1024 with proper HZ-dependent value.
(But the latter one should be done separately.)
> return count - todo;
> }
...
> - av7110->wssData = ((d.data[1] << 8) & 0x3f00) | d.data[0];
> + av7110->wss_data = ((d.data[1] << 8) & 0x3f00) | d.data[0];
Another side note: This kind of changes can be properly converted to use
get_unaligned_le16() & GENMASK(). But it's another story.
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2026-03-27 11:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-24 18:42 Chethan C
2026-03-27 11:10 ` Andy Shevchenko [this message]
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=acZlwLpm9oMODXjc@ashevche-desk.local \
--to=andriy.shevchenko@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=hverkuil+cisco@kernel.org \
--cc=kees@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mail.chethanc@gmail.com \
--cc=mchehab@kernel.org \
--cc=osalbahr@gmail.com \
--cc=pmladek@suse.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
all inboxes | Powered by JetHome®