* [PATCH v3] staging: media: imx: fix parenthesis ending checks
@ 2026-03-10 0:26 Mark Adamenko
2026-03-10 15:24 ` Frank Li
2026-05-04 21:03 ` Frank Li
0 siblings, 2 replies; 3+ messages in thread
From: Mark Adamenko @ 2026-03-10 0:26 UTC (permalink / raw)
To: linux-staging
Cc: slongerbeam, p.zabel, gregkh, imx, linux-media, linux-kernel,
Mark Adamenko
Remove 4 checks for ending with a parenthesis by removing unnecessary
line breaks, and forward declare a variable for a function call that
would otherwise remain over 80 columns.
Signed-off-by: Mark Adamenko <marusik.adamenko@gmail.com>
---
v3: fix commit message
---
---
drivers/staging/media/imx/imx-ic-prpencvf.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/media/imx/imx-ic-prpencvf.c b/drivers/staging/media/imx/imx-ic-prpencvf.c
index 77360bfe081a..2339b59af7b0 100644
--- a/drivers/staging/media/imx/imx-ic-prpencvf.c
+++ b/drivers/staging/media/imx/imx-ic-prpencvf.c
@@ -315,8 +315,7 @@ static void prp_setup_vb2_buf(struct prp_priv *priv, dma_addr_t *phys)
buf = imx_media_capture_device_next_buf(vdev);
if (buf) {
priv->active_vb2_buf[i] = buf;
- phys[i] = vb2_dma_contig_plane_dma_addr(
- &buf->vbuf.vb2_buf, 0);
+ phys[i] = vb2_dma_contig_plane_dma_addr(&buf->vbuf.vb2_buf, 0);
} else {
priv->active_vb2_buf[i] = NULL;
phys[i] = priv->underrun_buf.phys;
@@ -704,11 +703,9 @@ static int prp_start(struct prp_priv *priv)
}
if (ipu_rot_mode_is_irt(priv->rot_mode))
- priv->eof_irq = ipu_idmac_channel_irq(
- ic_priv->ipu, priv->rot_out_ch, IPU_IRQ_EOF);
+ priv->eof_irq = ipu_idmac_channel_irq(ic_priv->ipu, priv->rot_out_ch, IPU_IRQ_EOF);
else
- priv->eof_irq = ipu_idmac_channel_irq(
- ic_priv->ipu, priv->out_ch, IPU_IRQ_EOF);
+ priv->eof_irq = ipu_idmac_channel_irq(ic_priv->ipu, priv->out_ch, IPU_IRQ_EOF);
ret = devm_request_irq(ic_priv->ipu_dev, priv->eof_irq,
prp_eof_interrupt, 0,
@@ -750,7 +747,7 @@ static int prp_start(struct prp_priv *priv)
static void prp_stop(struct prp_priv *priv)
{
struct imx_ic_priv *ic_priv = priv->ic_priv;
- unsigned long flags;
+ unsigned long flags, timeout_in_jiffies;
int ret;
/* mark next EOF interrupt as the last before stream off */
@@ -761,9 +758,8 @@ static void prp_stop(struct prp_priv *priv)
/*
* and then wait for interrupt handler to mark completion.
*/
- ret = wait_for_completion_timeout(
- &priv->last_eof_comp,
- msecs_to_jiffies(IMX_MEDIA_EOF_TIMEOUT));
+ timeout_in_jiffies = msecs_to_jiffies(IMX_MEDIA_EOF_TIMEOUT);
+ ret = wait_for_completion_timeout(&priv->last_eof_comp, timeout_in_jiffies);
if (ret == 0)
v4l2_warn(&ic_priv->sd, "wait last EOF timeout\n");
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] staging: media: imx: fix parenthesis ending checks
2026-03-10 0:26 [PATCH v3] staging: media: imx: fix parenthesis ending checks Mark Adamenko
@ 2026-03-10 15:24 ` Frank Li
2026-05-04 21:03 ` Frank Li
1 sibling, 0 replies; 3+ messages in thread
From: Frank Li @ 2026-03-10 15:24 UTC (permalink / raw)
To: Mark Adamenko
Cc: linux-staging, slongerbeam, p.zabel, gregkh, imx, linux-media,
linux-kernel
On Mon, Mar 09, 2026 at 05:26:43PM -0700, Mark Adamenko wrote:
> Remove 4 checks for ending with a parenthesis by removing unnecessary
> line breaks, and forward declare a variable for a function call that
> would otherwise remain over 80 columns.
>
> Signed-off-by: Mark Adamenko <marusik.adamenko@gmail.com>
> ---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> v3: fix commit message
> ---
> ---
> drivers/staging/media/imx/imx-ic-prpencvf.c | 16 ++++++----------
> 1 file changed, 6 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/staging/media/imx/imx-ic-prpencvf.c b/drivers/staging/media/imx/imx-ic-prpencvf.c
> index 77360bfe081a..2339b59af7b0 100644
> --- a/drivers/staging/media/imx/imx-ic-prpencvf.c
> +++ b/drivers/staging/media/imx/imx-ic-prpencvf.c
> @@ -315,8 +315,7 @@ static void prp_setup_vb2_buf(struct prp_priv *priv, dma_addr_t *phys)
> buf = imx_media_capture_device_next_buf(vdev);
> if (buf) {
> priv->active_vb2_buf[i] = buf;
> - phys[i] = vb2_dma_contig_plane_dma_addr(
> - &buf->vbuf.vb2_buf, 0);
> + phys[i] = vb2_dma_contig_plane_dma_addr(&buf->vbuf.vb2_buf, 0);
> } else {
> priv->active_vb2_buf[i] = NULL;
> phys[i] = priv->underrun_buf.phys;
> @@ -704,11 +703,9 @@ static int prp_start(struct prp_priv *priv)
> }
>
> if (ipu_rot_mode_is_irt(priv->rot_mode))
> - priv->eof_irq = ipu_idmac_channel_irq(
> - ic_priv->ipu, priv->rot_out_ch, IPU_IRQ_EOF);
> + priv->eof_irq = ipu_idmac_channel_irq(ic_priv->ipu, priv->rot_out_ch, IPU_IRQ_EOF);
> else
> - priv->eof_irq = ipu_idmac_channel_irq(
> - ic_priv->ipu, priv->out_ch, IPU_IRQ_EOF);
> + priv->eof_irq = ipu_idmac_channel_irq(ic_priv->ipu, priv->out_ch, IPU_IRQ_EOF);
>
> ret = devm_request_irq(ic_priv->ipu_dev, priv->eof_irq,
> prp_eof_interrupt, 0,
> @@ -750,7 +747,7 @@ static int prp_start(struct prp_priv *priv)
> static void prp_stop(struct prp_priv *priv)
> {
> struct imx_ic_priv *ic_priv = priv->ic_priv;
> - unsigned long flags;
> + unsigned long flags, timeout_in_jiffies;
> int ret;
>
> /* mark next EOF interrupt as the last before stream off */
> @@ -761,9 +758,8 @@ static void prp_stop(struct prp_priv *priv)
> /*
> * and then wait for interrupt handler to mark completion.
> */
> - ret = wait_for_completion_timeout(
> - &priv->last_eof_comp,
> - msecs_to_jiffies(IMX_MEDIA_EOF_TIMEOUT));
> + timeout_in_jiffies = msecs_to_jiffies(IMX_MEDIA_EOF_TIMEOUT);
> + ret = wait_for_completion_timeout(&priv->last_eof_comp, timeout_in_jiffies);
> if (ret == 0)
> v4l2_warn(&ic_priv->sd, "wait last EOF timeout\n");
>
> --
> 2.53.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] staging: media: imx: fix parenthesis ending checks
2026-03-10 0:26 [PATCH v3] staging: media: imx: fix parenthesis ending checks Mark Adamenko
2026-03-10 15:24 ` Frank Li
@ 2026-05-04 21:03 ` Frank Li
1 sibling, 0 replies; 3+ messages in thread
From: Frank Li @ 2026-05-04 21:03 UTC (permalink / raw)
To: linux-staging, Mark Adamenko
Cc: Frank Li, slongerbeam, p.zabel, gregkh, imx, linux-media,
linux-kernel
On Mon, 09 Mar 2026 17:26:43 -0700, Mark Adamenko wrote:
> Remove 4 checks for ending with a parenthesis by removing unnecessary
> line breaks, and forward declare a variable for a function call that
> would otherwise remain over 80 columns.
>
>
Applied, thanks!
[1/1] staging: media: imx: fix parenthesis ending checks
commit: 616d687e7d419cd7f6464f37b8d1906fd351fd53
Best regards,
--
Frank Li <Frank.Li@nxp.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-04 21:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-10 0:26 [PATCH v3] staging: media: imx: fix parenthesis ending checks Mark Adamenko
2026-03-10 15:24 ` Frank Li
2026-05-04 21:03 ` Frank Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox