aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/ov772x.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-07-26 11:20:42 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-03 16:27:23 -0400
commit2891f37c261306ae3c3d84775500da3cb9428e33 (patch)
tree5569cd8c3fcb6f91ddb0a536ad0eac6e475c59a1 /include/media/ov772x.h
parent59ca25b7eb8f6675be94ec18beb8eb66293f550d (diff)
[media] V4L: ov772x: rename macros to not pollute the global namespace
Macros, defined in a header under include/ should be kept in a local namespace and not pollute the global one. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/ov772x.h')
-rw-r--r--include/media/ov772x.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/include/media/ov772x.h b/include/media/ov772x.h
index 548bf1155c83..f9e27c0ce901 100644
--- a/include/media/ov772x.h
+++ b/include/media/ov772x.h
@@ -12,8 +12,6 @@
12#ifndef __OV772X_H__ 12#ifndef __OV772X_H__
13#define __OV772X_H__ 13#define __OV772X_H__
14 14
15#include <media/soc_camera.h>
16
17/* for flags */ 15/* for flags */
18#define OV772X_FLAG_VFLIP (1 << 0) /* Vertical flip image */ 16#define OV772X_FLAG_VFLIP (1 << 0) /* Vertical flip image */
19#define OV772X_FLAG_HFLIP (1 << 1) /* Horizontal flip image */ 17#define OV772X_FLAG_HFLIP (1 << 1) /* Horizontal flip image */
@@ -32,22 +30,23 @@ struct ov772x_edge_ctrl {
32 unsigned char lower; 30 unsigned char lower;
33}; 31};
34 32
35#define OV772X_MANUAL_EDGE_CTRL 0x80 /* un-used bit of strength */ 33#define OV772X_MANUAL_EDGE_CTRL 0x80 /* un-used bit of strength */
36#define EDGE_STRENGTH_MASK 0x1F 34#define OV772X_EDGE_STRENGTH_MASK 0x1F
37#define EDGE_THRESHOLD_MASK 0x0F 35#define OV772X_EDGE_THRESHOLD_MASK 0x0F
38#define EDGE_UPPER_MASK 0xFF 36#define OV772X_EDGE_UPPER_MASK 0xFF
39#define EDGE_LOWER_MASK 0xFF 37#define OV772X_EDGE_LOWER_MASK 0xFF
40 38
41#define OV772X_AUTO_EDGECTRL(u, l) \ 39#define OV772X_AUTO_EDGECTRL(u, l) \
42{ \ 40{ \
43 .upper = (u & EDGE_UPPER_MASK), \ 41 .upper = (u & OV772X_EDGE_UPPER_MASK), \
44 .lower = (l & EDGE_LOWER_MASK), \ 42 .lower = (l & OV772X_EDGE_LOWER_MASK), \
45} 43}
46 44
47#define OV772X_MANUAL_EDGECTRL(s, t) \ 45#define OV772X_MANUAL_EDGECTRL(s, t) \
48{ \ 46{ \
49 .strength = (s & EDGE_STRENGTH_MASK) | OV772X_MANUAL_EDGE_CTRL,\ 47 .strength = (s & OV772X_EDGE_STRENGTH_MASK) | \
50 .threshold = (t & EDGE_THRESHOLD_MASK), \ 48 OV772X_MANUAL_EDGE_CTRL, \
49 .threshold = (t & OV772X_EDGE_THRESHOLD_MASK), \
51} 50}
52 51
53/* 52/*