mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 23:53:55 +08:00
[media] s3c-camif: fix arguments position in a function call
Fix the position of arguments so camif->colorfx_cb, camif->colorfx_cr
are passed in proper order to the camif_hw_set_effect() function.
Addresses-Coverity-ID: 1248800
Addresses-Coverity-ID: 1269141
[s.nawrocki@samsung.com: edited commit message ]
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
3966f5ce02
commit
acec363015
@ -80,7 +80,7 @@ static int s3c_camif_hw_init(struct camif_dev *camif, struct camif_vp *vp)
|
|||||||
camif_hw_set_test_pattern(camif, camif->test_pattern);
|
camif_hw_set_test_pattern(camif, camif->test_pattern);
|
||||||
if (variant->has_img_effect)
|
if (variant->has_img_effect)
|
||||||
camif_hw_set_effect(camif, camif->colorfx,
|
camif_hw_set_effect(camif, camif->colorfx,
|
||||||
camif->colorfx_cb, camif->colorfx_cr);
|
camif->colorfx_cr, camif->colorfx_cb);
|
||||||
if (variant->ip_revision == S3C6410_CAMIF_IP_REV)
|
if (variant->ip_revision == S3C6410_CAMIF_IP_REV)
|
||||||
camif_hw_set_input_path(vp);
|
camif_hw_set_input_path(vp);
|
||||||
camif_cfg_video_path(vp);
|
camif_cfg_video_path(vp);
|
||||||
@ -364,7 +364,7 @@ irqreturn_t s3c_camif_irq_handler(int irq, void *priv)
|
|||||||
camif_hw_set_test_pattern(camif, camif->test_pattern);
|
camif_hw_set_test_pattern(camif, camif->test_pattern);
|
||||||
if (camif->variant->has_img_effect)
|
if (camif->variant->has_img_effect)
|
||||||
camif_hw_set_effect(camif, camif->colorfx,
|
camif_hw_set_effect(camif, camif->colorfx,
|
||||||
camif->colorfx_cb, camif->colorfx_cr);
|
camif->colorfx_cr, camif->colorfx_cb);
|
||||||
vp->state &= ~ST_VP_CONFIG;
|
vp->state &= ~ST_VP_CONFIG;
|
||||||
}
|
}
|
||||||
unlock:
|
unlock:
|
||||||
|
Loading…
Reference in New Issue
Block a user