Skip to content

Commit f0b75b4

Browse files
pinchartlgregkh
authored andcommitted
media: nxp: imx8-isi: Drop unused argument to mxc_isi_channel_chain()
[ Upstream commit 9a21ffe ] The bypass argument to the mxc_isi_channel_chain() function is unused. Drop it. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Frank Li <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Stable-dep-of: 178aa33 ("media: nxp: imx8-isi: m2m: Fix streaming cleanup on release") Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3e7b89e commit f0b75b4

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

drivers/media/platform/nxp/imx8-isi/imx8-isi-core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ void mxc_isi_channel_get(struct mxc_isi_pipe *pipe);
361361
void mxc_isi_channel_put(struct mxc_isi_pipe *pipe);
362362
void mxc_isi_channel_enable(struct mxc_isi_pipe *pipe);
363363
void mxc_isi_channel_disable(struct mxc_isi_pipe *pipe);
364-
int mxc_isi_channel_chain(struct mxc_isi_pipe *pipe, bool bypass);
364+
int mxc_isi_channel_chain(struct mxc_isi_pipe *pipe);
365365
void mxc_isi_channel_unchain(struct mxc_isi_pipe *pipe);
366366

367367
void mxc_isi_channel_config(struct mxc_isi_pipe *pipe,

drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ void mxc_isi_channel_release(struct mxc_isi_pipe *pipe)
587587
*
588588
* TODO: Support secondary line buffer for downscaling YUV420 images.
589589
*/
590-
int mxc_isi_channel_chain(struct mxc_isi_pipe *pipe, bool bypass)
590+
int mxc_isi_channel_chain(struct mxc_isi_pipe *pipe)
591591
{
592592
/* Channel chaining requires both line and output buffer. */
593593
const u8 resources = MXC_ISI_CHANNEL_RES_OUTPUT_BUF

drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ static int mxc_isi_m2m_streamon(struct file *file, void *fh,
493493
const struct mxc_isi_format_info *cap_info = ctx->queues.cap.info;
494494
const struct mxc_isi_format_info *out_info = ctx->queues.out.info;
495495
struct mxc_isi_m2m *m2m = ctx->m2m;
496-
bool bypass;
497496
int ret;
498497

499498
if (q->streaming)
@@ -506,15 +505,15 @@ static int mxc_isi_m2m_streamon(struct file *file, void *fh,
506505
goto unlock;
507506
}
508507

509-
bypass = cap_pix->width == out_pix->width &&
510-
cap_pix->height == out_pix->height &&
511-
cap_info->encoding == out_info->encoding;
512-
513508
/*
514509
* Acquire the pipe and initialize the channel with the first user of
515510
* the M2M device.
516511
*/
517512
if (m2m->usage_count == 0) {
513+
bool bypass = cap_pix->width == out_pix->width &&
514+
cap_pix->height == out_pix->height &&
515+
cap_info->encoding == out_info->encoding;
516+
518517
ret = mxc_isi_channel_acquire(m2m->pipe,
519518
&mxc_isi_m2m_frame_write_done,
520519
bypass);
@@ -531,7 +530,7 @@ static int mxc_isi_m2m_streamon(struct file *file, void *fh,
531530
* buffer chaining.
532531
*/
533532
if (!ctx->chained && out_pix->width > MXC_ISI_MAX_WIDTH_UNCHAINED) {
534-
ret = mxc_isi_channel_chain(m2m->pipe, bypass);
533+
ret = mxc_isi_channel_chain(m2m->pipe);
535534
if (ret)
536535
goto deinit;
537536

drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ int mxc_isi_pipe_acquire(struct mxc_isi_pipe *pipe,
855855

856856
/* Chain the channel if needed for wide resolutions. */
857857
if (sink_fmt->width > MXC_ISI_MAX_WIDTH_UNCHAINED) {
858-
ret = mxc_isi_channel_chain(pipe, bypass);
858+
ret = mxc_isi_channel_chain(pipe);
859859
if (ret)
860860
mxc_isi_channel_release(pipe);
861861
}

0 commit comments

Comments
 (0)