mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Acked-by: Lad, Prabhakar <[email protected]> Acked-by: Laurent Pinchart <[email protected]> Acked-by: Hans Verkuil <[email protected]> Acked-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
cfca7644d7
commit
e7359f8e66
2 changed files with 14 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/mutex.h>
|
||||
|
||||
struct device;
|
||||
struct device_node;
|
||||
struct v4l2_device;
|
||||
struct v4l2_subdev;
|
||||
struct v4l2_async_notifier;
|
||||
|
|
@ -26,6 +27,7 @@ enum v4l2_async_match_type {
|
|||
V4L2_ASYNC_MATCH_CUSTOM,
|
||||
V4L2_ASYNC_MATCH_DEVNAME,
|
||||
V4L2_ASYNC_MATCH_I2C,
|
||||
V4L2_ASYNC_MATCH_OF,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -38,6 +40,9 @@ enum v4l2_async_match_type {
|
|||
struct v4l2_async_subdev {
|
||||
enum v4l2_async_match_type match_type;
|
||||
union {
|
||||
struct {
|
||||
const struct device_node *node;
|
||||
} of;
|
||||
struct {
|
||||
const char *name;
|
||||
} device_name;
|
||||
|
|
|
|||
Loading…
Reference in a new issue