aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/smiapp
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2012-06-13 15:01:10 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-06 19:17:46 -0400
commit563df3d0bc2ca103e5ddb76c8b7b3386ed2da0d6 (patch)
treebda561c54a3dd03a52bd8d714c8c354b146e8dc6 /drivers/media/video/smiapp
parent64b9ce83a446277d3ffdb5e25e9aeb66442da2a9 (diff)
[media] v4l: Unify selection flags
Unify flags on the selection interfaces on V4L2 and V4L2 subdev. Flags are very similar to targets in this case: there are more similarities than differences between the two interfaces. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/smiapp')
-rw-r--r--drivers/media/video/smiapp/smiapp-core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/smiapp/smiapp-core.c b/drivers/media/video/smiapp/smiapp-core.c
index 9bbb5d3f003b..8a5d4f7932a0 100644
--- a/drivers/media/video/smiapp/smiapp-core.c
+++ b/drivers/media/video/smiapp/smiapp-core.c
@@ -38,9 +38,9 @@
38 38
39#include "smiapp.h" 39#include "smiapp.h"
40 40
41#define SMIAPP_ALIGN_DIM(dim, flags) \ 41#define SMIAPP_ALIGN_DIM(dim, flags) \
42 ((flags) & V4L2_SUBDEV_SEL_FLAG_SIZE_GE \ 42 ((flags) & V4L2_SEL_FLAG_GE \
43 ? ALIGN((dim), 2) \ 43 ? ALIGN((dim), 2) \
44 : (dim) & ~1) 44 : (dim) & ~1)
45 45
46/* 46/*
@@ -1747,14 +1747,14 @@ static int scaling_goodness(struct v4l2_subdev *subdev, int w, int ask_w,
1747 h &= ~1; 1747 h &= ~1;
1748 ask_h &= ~1; 1748 ask_h &= ~1;
1749 1749
1750 if (flags & V4L2_SUBDEV_SEL_FLAG_SIZE_GE) { 1750 if (flags & V4L2_SEL_FLAG_GE) {
1751 if (w < ask_w) 1751 if (w < ask_w)
1752 val -= SCALING_GOODNESS; 1752 val -= SCALING_GOODNESS;
1753 if (h < ask_h) 1753 if (h < ask_h)
1754 val -= SCALING_GOODNESS; 1754 val -= SCALING_GOODNESS;
1755 } 1755 }
1756 1756
1757 if (flags & V4L2_SUBDEV_SEL_FLAG_SIZE_LE) { 1757 if (flags & V4L2_SEL_FLAG_LE) {
1758 if (w > ask_w) 1758 if (w > ask_w)
1759 val -= SCALING_GOODNESS; 1759 val -= SCALING_GOODNESS;
1760 if (h > ask_h) 1760 if (h > ask_h)