All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vim2m: fill in bus_info in media_device_info
@ 2019-01-30 13:39 Hans Verkuil
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2019-01-30 13:39 UTC (permalink / raw)
  To: Linux Media Mailing List

It is good practice to fill in the bus_info.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c
index 0e7814b2327e..4055aabf2a5e 100644
--- a/drivers/media/platform/vim2m.c
+++ b/drivers/media/platform/vim2m.c
@@ -1155,6 +1155,7 @@ static int vim2m_probe(struct platform_device *pdev)
 #ifdef CONFIG_MEDIA_CONTROLLER
 	dev->mdev.dev = &pdev->dev;
 	strscpy(dev->mdev.model, "vim2m", sizeof(dev->mdev.model));
+	strscpy(dev->mdev.bus_info, "platform:vim2m", sizeof(dev->mdev.bus_info));
 	media_device_init(&dev->mdev);
 	dev->mdev.ops = &m2m_media_ops;
 	dev->v4l2_dev.mdev = &dev->mdev;


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] vim2m: fill in bus_info in media_device_info
@ 2019-01-30 13:36 Hans Verkuil (hansverk)
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil (hansverk) @ 2019-01-30 13:36 UTC (permalink / raw)
  To: Linux Media Mailing List

It is good practice to fill in the bus_info.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c
index 0e7814b2327e..4055aabf2a5e 100644
--- a/drivers/media/platform/vim2m.c
+++ b/drivers/media/platform/vim2m.c
@@ -1155,6 +1155,7 @@ static int vim2m_probe(struct platform_device *pdev)
 #ifdef CONFIG_MEDIA_CONTROLLER
 	dev->mdev.dev = &pdev->dev;
 	strscpy(dev->mdev.model, "vim2m", sizeof(dev->mdev.model));
+	strscpy(dev->mdev.bus_info, "platform:vim2m", sizeof(dev->mdev.bus_info));
 	media_device_init(&dev->mdev);
 	dev->mdev.ops = &m2m_media_ops;
 	dev->v4l2_dev.mdev = &dev->mdev;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-30 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-30 13:39 [PATCH] vim2m: fill in bus_info in media_device_info Hans Verkuil
  -- strict thread matches above, loose matches on Subject: below --
2019-01-30 13:36 Hans Verkuil (hansverk)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.