From patchwork Fri Aug 18 14:16:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 9909167 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 061DE602C8 for ; Fri, 18 Aug 2017 14:18:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E988128C3B for ; Fri, 18 Aug 2017 14:18:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE44728C48; Fri, 18 Aug 2017 14:18:29 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable 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 7584028C3B for ; Fri, 18 Aug 2017 14:18:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753240AbdHROSP (ORCPT ); Fri, 18 Aug 2017 10:18:15 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:33947 "EHLO mail-wr0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753514AbdHROQx (ORCPT ); Fri, 18 Aug 2017 10:16:53 -0400 Received: by mail-wr0-f175.google.com with SMTP id y96so68404312wrc.1 for ; Fri, 18 Aug 2017 07:16:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xgYvQv5/ooAnh9gVSKLlupjldBumwIY441TcBDMdzG0=; b=jkV6DeCju0RDR0uPrOD7j6V0clCE+/nHPnww12rbZzvPhHBpsWVk575AOyHlJ1/7ND uz1E8HC/WcPlVt6rV8Dnq6VCtgPQ/QHEyA//greexlQp7THuLluIwNKn6Z+qODsFuz1J ZZt8BYEr9nAn5OJnJ0Lpq0HAGZuGRgOvKwuwQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xgYvQv5/ooAnh9gVSKLlupjldBumwIY441TcBDMdzG0=; b=gooGkH/PKrewhuLh8/f2jc+q3s0LVV+ZfWp6oskIcfL99olRoqTTP3JywDcFUDfVOR GSx/CSufz935iiuyuez5dgiHJmBVY8SSQoHCyXNgIdY8z1E93aecaBKDXRQZ5uaWYUwe hcF+y/R68MX/wMsll3x4VLOFrfAma1FX5uNaP0G6OQ9TWiqtX0uVgs/x8IT7iRfReUfF g9dq4CGoG5T/qqAPYqoxdk0S7eGPQN6r7UZ4TcTizJIkEOUDXVphg785VQ0ahjlHLh3Q zvcKkRgH0W9WsGANAjkdlRzXH0/ef5cpcszrTbT7mjVne7gBi6z+/fgNLJ2u8flYb0aC a27g== X-Gm-Message-State: AHYfb5gLiT5mqhwVg4DGf+Blgze3bCnrgqDg3+ayCYW3xmEgfiY1ecPU rfqSOyR3VO4D58zr0Ko20w== X-Received: by 10.223.137.17 with SMTP id s17mr6162092wrs.263.1503065811820; Fri, 18 Aug 2017 07:16:51 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 55sm1387383wrv.32.2017.08.18.07.16.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Aug 2017 07:16:51 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: Pawel Osciak , Marek Szyprowski , Kyungmin Park , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov Subject: [PATCH 4/7] media: venus: fill missing video_device name Date: Fri, 18 Aug 2017 17:16:03 +0300 Message-Id: <20170818141606.4835-5-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170818141606.4835-1-stanimir.varbanov@linaro.org> References: <20170818141606.4835-1-stanimir.varbanov@linaro.org> 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 This fills missing (forgotten) video device name with appropriate string so that udev can distinguishes between decoder and encoder devices. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/vdec.c | 1 + drivers/media/platform/qcom/venus/venc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index 44d4848e878a..32a1feb2fe6a 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -1069,6 +1069,7 @@ static int vdec_probe(struct platform_device *pdev) if (!vdev) return -ENOMEM; + strlcpy(vdev->name, "qcom-venus-decoder", sizeof(vdev->name)); vdev->release = video_device_release; vdev->fops = &vdec_fops; vdev->ioctl_ops = &vdec_ioctl_ops; diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c index 4bffadd67238..bcb50d39f88a 100644 --- a/drivers/media/platform/qcom/venus/venc.c +++ b/drivers/media/platform/qcom/venus/venc.c @@ -1192,6 +1192,7 @@ static int venc_probe(struct platform_device *pdev) if (!vdev) return -ENOMEM; + strlcpy(vdev->name, "qcom-venus-encoder", sizeof(vdev->name)); vdev->release = video_device_release; vdev->fops = &venc_fops; vdev->ioctl_ops = &venc_ioctl_ops;