diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-07-19 11:21:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-07-30 14:52:32 -0400 |
commit | e7359f8e660882fb2168609638163561eb2f50f0 (patch) | |
tree | f40223db11d3de96d1315023530880d33a844dca /include/media/v4l2-async.h | |
parent | cfca7644d7959e1f50cb132306d1557bf6c2da57 (diff) |
[media] V4L: Add V4L2_ASYNC_MATCH_OF subdev matching type
Add support for matching by device_node pointer. This allows
the notifier user to simply pass a list of device_node pointers
corresponding to sub-devices.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media/v4l2-async.h')
-rw-r--r-- | include/media/v4l2-async.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/v4l2-async.h b/include/media/v4l2-async.h index 33e3b2a30ecb..82b29813f8be 100644 --- a/include/media/v4l2-async.h +++ b/include/media/v4l2-async.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/mutex.h> | 15 | #include <linux/mutex.h> |
16 | 16 | ||
17 | struct device; | 17 | struct device; |
18 | struct device_node; | ||
18 | struct v4l2_device; | 19 | struct v4l2_device; |
19 | struct v4l2_subdev; | 20 | struct v4l2_subdev; |
20 | struct v4l2_async_notifier; | 21 | struct v4l2_async_notifier; |
@@ -26,6 +27,7 @@ enum v4l2_async_match_type { | |||
26 | V4L2_ASYNC_MATCH_CUSTOM, | 27 | V4L2_ASYNC_MATCH_CUSTOM, |
27 | V4L2_ASYNC_MATCH_DEVNAME, | 28 | V4L2_ASYNC_MATCH_DEVNAME, |
28 | V4L2_ASYNC_MATCH_I2C, | 29 | V4L2_ASYNC_MATCH_I2C, |
30 | V4L2_ASYNC_MATCH_OF, | ||
29 | }; | 31 | }; |
30 | 32 | ||
31 | /** | 33 | /** |
@@ -39,6 +41,9 @@ struct v4l2_async_subdev { | |||
39 | enum v4l2_async_match_type match_type; | 41 | enum v4l2_async_match_type match_type; |
40 | union { | 42 | union { |
41 | struct { | 43 | struct { |
44 | const struct device_node *node; | ||
45 | } of; | ||
46 | struct { | ||
42 | const char *name; | 47 | const char *name; |
43 | } device_name; | 48 | } device_name; |
44 | struct { | 49 | struct { |