From: Mikko Perttunen <mperttunen@nvidia.com>
To: thierry.reding@kernel.org, jonathanh@nvidia.com,
skomatineni@nvidia.com, luca.ceresoli@bootlin.com,
mchehab@kernel.org, gregkh@linuxfoundation.org,
Faisal Mukhtar <mukhtarfaisal03@gmail.com>
Cc: linux-media@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Faisal Mukhtar <mukhtarfaisal03@gmail.com>
Subject: Re: [PATCH] media: tegra-video: Use BIT macro in tegra20.c
Date: Thu, 23 Jul 2026 13:18:11 +0900 [thread overview]
Message-ID: <A0-05eQLQFWwHGewIFE3Kg@nvidia.com> (raw)
In-Reply-To: <20260722154055.385164-1-mukhtarfaisal03@gmail.com>
On Thursday, July 23, 2026 12:40 AM Faisal Mukhtar wrote:
> Fix checkpatch.pl warnings by replacing explicit
> bit shift (1 << n) with the BIT macro, to better
> adhere to the kernel coding style.
>
> Signed-off-by: Faisal Mukhtar <mukhtarfaisal03@gmail.com>
> ---
> drivers/staging/media/tegra-video/tegra20.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/media/tegra-video/tegra20.c b/drivers/staging/media/tegra-video/tegra20.c
> index e513e6ccb776..cdfd9f276d11 100644
> --- a/drivers/staging/media/tegra-video/tegra20.c
> +++ b/drivers/staging/media/tegra-video/tegra20.c
> @@ -177,15 +177,15 @@ enum tegra_vi_out {
> #define CSI_SKIP_PACKET_THRESHOLD(n) (((n) & 0xff) << 16)
> #define TEGRA_CSI_PIXEL_STREAM_CONTROL0(n) (0x0018 + (n) * 0x2c)
> #define CSI_PP_PAD_FRAME_PAD0S (0 << 28)
> -#define CSI_PP_PAD_FRAME_PAD1S (1 << 28)
> +#define CSI_PP_PAD_FRAME_PAD1S BIT(28)
> #define CSI_PP_PAD_FRAME_NOPAD (2 << 28)
> #define CSI_PP_HEADER_EC_ENABLE BIT(27)
> #define CSI_PP_PAD_SHORT_LINE_PAD0S (0 << 24)
> -#define CSI_PP_PAD_SHORT_LINE_PAD1S (1 << 24)
> +#define CSI_PP_PAD_SHORT_LINE_PAD1S BIT(24)
> #define CSI_PP_PAD_SHORT_LINE_NOPAD (2 << 24)
> #define CSI_PP_EMBEDDED_DATA_EMBEDDED BIT(20)
> #define CSI_PP_OUTPUT_FORMAT_ARBITRARY (0 << 16)
> -#define CSI_PP_OUTPUT_FORMAT_PIXEL (1 << 16)
> +#define CSI_PP_OUTPUT_FORMAT_PIXEL BIT(16)
> #define CSI_PP_OUTPUT_FORMAT_PIXEL_REP (2 << 16)
> #define CSI_PP_OUTPUT_FORMAT_STORE (3 << 16)
> #define CSI_PP_VIRTUAL_CHANNEL_ID(n) (((n) - 1) << 14)
> --
> 2.53.0
>
>
BIT is only used for true/false fields. These are not that.
Mikko
prev parent reply other threads:[~2026-07-23 4:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 15:40 [PATCH] media: tegra-video: Use BIT macro in tegra20.c Faisal Mukhtar
2026-07-23 4:18 ` Mikko Perttunen [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=A0-05eQLQFWwHGewIFE3Kg@nvidia.com \
--to=mperttunen@nvidia.com \
--cc=gregkh@linuxfoundation.org \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=linux-tegra@vger.kernel.org \
--cc=luca.ceresoli@bootlin.com \
--cc=mchehab@kernel.org \
--cc=mukhtarfaisal03@gmail.com \
--cc=skomatineni@nvidia.com \
--cc=thierry.reding@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