aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorAybuke Ozdemir <aybuke.147@gmail.com>2014-10-20 22:39:34 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-23 06:10:49 (GMT)
commit1002a240ed72f0535f01ca88e0341ccf7c4e0b54 (patch)
treef01355aff533ec35f3b3233292b7f93aeff3bb51 /drivers/staging/media
parent8d02c02253457a1facf077d8d67aa350ac317878 (diff)
staging: media: omap24xx: Use min_t instead of min
This patch focuses on fixing the following warning generated by checkpatch.pl for the file tcm825x.c: WARNÄ°NG: min() should probably be min_t(u32, tgt_xclk, TCM825X_XCLK_MAX) The changes were applied using the following coccinelle rule: @@ expression e1, e2; typedef u32; @@ -tgt_xclk = min(e1, (u32)e2); +tgt_xclk = min_t(u32, e1, e2); Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/omap24xx/tcm825x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/omap24xx/tcm825x.c b/drivers/staging/media/omap24xx/tcm825x.c
index 9d9ecf1f..6a1f479 100644
--- a/drivers/staging/media/omap24xx/tcm825x.c
+++ b/drivers/staging/media/omap24xx/tcm825x.c
@@ -751,7 +751,7 @@ static int ioctl_g_ifparm(struct v4l2_int_device *s, struct v4l2_ifparm *p)
(2457 * tgt_fps) / MAX_FPS;
tgt_xclk *= 10000;
- tgt_xclk = min(tgt_xclk, (u32)TCM825X_XCLK_MAX);
+ tgt_xclk = min_t(u32, tgt_xclk, TCM825X_XCLK_MAX);
tgt_xclk = max(tgt_xclk, (u32)TCM825X_XCLK_MIN);
p->u.bt656.clock_curr = tgt_xclk;

Privacy Policy