From patchwork Wed Jan 30 13:39:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 10788615 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B18F313B5 for ; Wed, 30 Jan 2019 13:39:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D7A52ED77 for ; Wed, 30 Jan 2019 13:39:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 915A82ED89; Wed, 30 Jan 2019 13:39:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D89C2E423 for ; Wed, 30 Jan 2019 13:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731245AbfA3NjW (ORCPT ); Wed, 30 Jan 2019 08:39:22 -0500 Received: from lb3-smtp-cloud7.xs4all.net ([194.109.24.31]:51720 "EHLO lb3-smtp-cloud7.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729193AbfA3NjW (ORCPT ); Wed, 30 Jan 2019 08:39:22 -0500 Received: from [IPv6:2001:420:44c1:2579:1135:9e59:3a9c:d4ef] ([IPv6:2001:420:44c1:2579:1135:9e59:3a9c:d4ef]) by smtp-cloud7.xs4all.net with ESMTPA id oq5Fg1JcFBDyIoq5IgvEKb; Wed, 30 Jan 2019 14:39:20 +0100 From: Hans Verkuil Subject: [PATCH] vim2m: fill in bus_info in media_device_info To: Linux Media Mailing List Message-ID: Date: Wed, 30 Jan 2019 14:39:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Language: en-US X-CMAE-Envelope: MS4wfIlV/Me0DjCFgRrvuAJPtp6SYJUY/HzCitRnt9VjW3sjEC2cpI9f4ZuW5QTRwLFWS6F6zAfGDjzXwhzB8zt5CihjniiG9wRiv3Ii/LoY4d7quRvMKAJK hZtDopUseZzfih7o6+e/iKSRthMf8wVoaxbxquLdgGJp7W3pLROAXbiUrwoiusoMEkuIaeZpfekQOuQWsPT3e/LoTyWO+/KZDQ379xh0ZrNPXgLrF2Vil0Jx 6zpp2unruOSAm5OuF7rmk8/lfSkZR5My/VeQCuh8X5rQPH4sGzZA2RoA02PbV7Pn Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is good practice to fill in the bus_info. Signed-off-by: Hans Verkuil 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;