diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-21 16:08:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:54 -0400 |
commit | ab373190813a2e89f9ab7338c6b106804611f2b7 (patch) | |
tree | 104cb4edf5f751441f3cabc7ac768dc98c661a5d /include/media | |
parent | 81dde91f640d6dea89229bb00c4ff38739fc1867 (diff) |
V4L/DVB (10691): v4l2-common: add v4l2_i2c_subdev_addr()
Add small function to retrieve the i2c address from a v4l2_subdev
pointer.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index de785da4564c..7779d9c93ec8 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h | |||
@@ -154,6 +154,8 @@ struct v4l2_subdev *v4l2_i2c_new_probed_subdev(struct i2c_adapter *adapter, | |||
154 | /* Initialize an v4l2_subdev with data from an i2c_client struct */ | 154 | /* Initialize an v4l2_subdev with data from an i2c_client struct */ |
155 | void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client, | 155 | void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client, |
156 | const struct v4l2_subdev_ops *ops); | 156 | const struct v4l2_subdev_ops *ops); |
157 | /* Return i2c client address of v4l2_subdev. */ | ||
158 | unsigned short v4l2_i2c_subdev_addr(struct v4l2_subdev *sd); | ||
157 | 159 | ||
158 | enum v4l2_i2c_tuner_type { | 160 | enum v4l2_i2c_tuner_type { |
159 | ADDRS_RADIO, /* Radio tuner addresses */ | 161 | ADDRS_RADIO, /* Radio tuner addresses */ |