summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-09-07 13:32:44 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-09-07 13:32:44 +0200
commit9289c471f054eea5b832c6f54401de3ac856b046 (patch)
treeb7823d09243475b06855619a7984d55ef373a94c /linux
parentb4dcf31d890432fb3bf7f60f16087a475397b420 (diff)
downloadmediapointer-dvb-s2-9289c471f054eea5b832c6f54401de3ac856b046.tar.gz
mediapointer-dvb-s2-9289c471f054eea5b832c6f54401de3ac856b046.tar.bz2
mxb: use unique i2c adapter name
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/mxb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/mxb.c b/linux/drivers/media/video/mxb.c
index 641fd15db..8252ad94c 100644
--- a/linux/drivers/media/video/mxb.c
+++ b/linux/drivers/media/video/mxb.c
@@ -216,9 +216,10 @@ static int mxb_probe(struct saa7146_dev* dev)
mxb->i2c_adapter = (struct i2c_adapter) {
.class = I2C_CLASS_TV_ANALOG,
- .name = "mxb",
};
+ snprintf(mxb->i2c_adapter.name, sizeof(mxb->i2c_adapter.name), "mxb%d", mxb_num);
+
saa7146_i2c_adapter_prepare(dev, &mxb->i2c_adapter, SAA7146_I2C_BUS_BIT_RATE_480);
if(i2c_add_adapter(&mxb->i2c_adapter) < 0) {
DEB_S(("cannot register i2c-device. skipping.\n"));