Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9ebeae... Commit: 9ebeae5641b141a71ed442e9fcb4993f6c0cd04f Parent: 96af9880c0d38fa6f331d1dd4cd39c5f5227fbbf Author: Hans Verkuil <hverkuil@xs4all.nl> AuthorDate: Sun Sep 7 08:32:44 2008 -0300 Committer: Mauro Carvalho Chehab <mchehab@redhat.com> CommitDate: Sun Oct 12 09:37:00 2008 -0200 V4L/DVB (8945): mxb: use unique i2c adapter name Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> --- drivers/media/video/mxb.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/mxb.c b/drivers/media/video/mxb.c index b2dae50..7f13028 100644 --- a/drivers/media/video/mxb.c +++ b/drivers/media/video/mxb.c @@ -215,9 +215,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")); -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
