aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2014-02-27 11:44:47 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-03-11 08:27:38 -0400
commit785a3de18badb13a94a4cf71ebe38ea84b63a132 (patch)
treee97e3a03eecea17d544f76ac3b0a7bc46f62c0f9
parent73a8ca4877e17bece77f103336aa1e05cc3adcf0 (diff)
[media] tvp5150: Fix type mismatch warning in clamp macro
This patch fixes the following warning: drivers/media/i2c/tvp5150.c: In function '__tvp5150_try_crop': include/linux/kernel.h:762:17: warning: comparison of distinct pointer types lacks a cast [enabled by default] (void) (&__val == &__min); \ ^ drivers/media/i2c/tvp5150.c:886:16: note: in expansion of macro 'clamp' rect->width = clamp(rect->width, ^ include/linux/kernel.h:763:17: warning: comparison of distinct pointer types lacks a cast [enabled by default] (void) (&__val == &__max); \ ^ drivers/media/i2c/tvp5150.c:886:16: note: in expansion of macro 'clamp' rect->width = clamp(rect->width, ^ include/linux/kernel.h:762:17: warning: comparison of distinct pointer types lacks a cast [enabled by default] (void) (&__val == &__min); \ ^ drivers/media/i2c/tvp5150.c:904:17: note: in expansion of macro 'clamp' rect->height = clamp(rect->height, ^ include/linux/kernel.h:763:17: warning: comparison of distinct pointer types lacks a cast [enabled by default] (void) (&__val == &__max); \ ^ drivers/media/i2c/tvp5150.c:904:17: note: in expansion of macro 'clamp' rect->height = clamp(rect->height, ^ Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/i2c/tvp5150.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c
index 542d2528b3f9..8ac52fcf3f85 100644
--- a/drivers/media/i2c/tvp5150.c
+++ b/drivers/media/i2c/tvp5150.c
@@ -16,9 +16,9 @@
16 16
17#include "tvp5150_reg.h" 17#include "tvp5150_reg.h"
18 18
19#define TVP5150_H_MAX 720 19#define TVP5150_H_MAX 720U
20#define TVP5150_V_MAX_525_60 480 20#define TVP5150_V_MAX_525_60 480U
21#define TVP5150_V_MAX_OTHERS 576 21#define TVP5150_V_MAX_OTHERS 576U
22#define TVP5150_MAX_CROP_LEFT 511 22#define TVP5150_MAX_CROP_LEFT 511
23#define TVP5150_MAX_CROP_TOP 127 23#define TVP5150_MAX_CROP_TOP 127
24#define TVP5150_CROP_SHIFT 2 24#define TVP5150_CROP_SHIFT 2