diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-30 16:40:54 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-30 16:40:54 +0200 |
commit | 402941a820682bd6f89f6705bbe643e6808facc5 (patch) | |
tree | e4c6e5a8f78d6fb76a7b6feceb877d98c7b25394 /linux/include/media/v4l2-common.h | |
parent | f0312f1d7b8dd5cde4035eef2a5b0fe7effdd838 (diff) | |
download | mediapointer-dvb-s2-402941a820682bd6f89f6705bbe643e6808facc5.tar.gz mediapointer-dvb-s2-402941a820682bd6f89f6705bbe643e6808facc5.tar.bz2 |
v4l2-common: add v4l2_i2c_new_probed_subdev_addr
From: Hans Verkuil <hverkuil@xs4all.nl>
Add utility function to probe for a single address, rather than a list
of addresses.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media/v4l2-common.h')
-rw-r--r-- | linux/include/media/v4l2-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-common.h b/linux/include/media/v4l2-common.h index 665414d09..4d8ce3e42 100644 --- a/linux/include/media/v4l2-common.h +++ b/linux/include/media/v4l2-common.h @@ -154,6 +154,10 @@ struct v4l2_subdev *v4l2_i2c_new_probed_subdev(struct v4l2_device *v4l2_dev, struct i2c_adapter *adapter, const char *module_name, const char *client_type, const unsigned short *addrs); +/* Like v4l2_i2c_new_probed_subdev, except probe for a single address. */ +struct v4l2_subdev *v4l2_i2c_new_probed_subdev_addr(struct v4l2_device *v4l2_dev, + struct i2c_adapter *adapter, + const char *module_name, const char *client_type, u8 addr); /* Initialize an v4l2_subdev with data from an i2c_client struct */ void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client, const struct v4l2_subdev_ops *ops); |