summaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-common.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-30 16:40:54 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-07 02:44:24 +0200
commit868f985c2fb85b5f32785bb55a349d180a30f3d3 (patch)
treee0a7bc9246227ca00199241e54889f8c8913634d /include/media/v4l2-common.h
parentV4L/DVB (11372): v4l2: use old-style i2c API for kernels < 2.6.26 instead of ... (diff)
downloadlinux-868f985c2fb85b5f32785bb55a349d180a30f3d3.tar.xz
linux-868f985c2fb85b5f32785bb55a349d180a30f3d3.zip
V4L/DVB (11374): v4l2-common: add v4l2_i2c_new_probed_subdev_addr
Add utility function to probe for a single address, rather than a list of addresses. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/v4l2-common.h')
-rw-r--r--include/media/v4l2-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index 8ec50fea9e0d..1613a0ab8b04 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
@@ -147,6 +147,10 @@ struct v4l2_subdev *v4l2_i2c_new_subdev(struct i2c_adapter *adapter,
struct v4l2_subdev *v4l2_i2c_new_probed_subdev(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);