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: 110395 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp891190obb; Fri, 18 Aug 2017 07:18:19 -0700 (PDT) X-Received: by 10.101.73.136 with SMTP id r8mr8472601pgs.21.1503065899707; Fri, 18 Aug 2017 07:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503065899; cv=none; d=google.com; s=arc-20160816; b=uZ9BmRST3r5kFbN6LmBo/bMa3VP5fpjy9iI0FtghgQR8gpoUw1N3PiyWR4zuH40Ky/ 3mS+rgNRIC7daYl1kMLkBd7UDvYD8200bTUuohFn7XcAzfXk+wsguk/TtKBjvGcQy0Hm Pjzw3QYHXx+nfBQ4S4LYpL98vgx8/I2fYNTGasF7DGYQ/FVY49q8UCgMI/QvBhni+i0W gBcqmfYgHKmnxmkwJEdh+7YVatSfIMhzjl8h0xKfxjsZtRViOsuGnKYvnuJrt59oi4YY jL1RSqAIFLuWwS1Jlh2TD5elrx/oXFHE5gYK8TGEvK4xdVBxLpp/YOp9VDbe3W1elyjN yzsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=xgYvQv5/ooAnh9gVSKLlupjldBumwIY441TcBDMdzG0=; b=hxv7WH3xqnhIBsylE6IPUwQ1qnV0Zffuv8WIX8o8gR5uhJVkGjktC+TQNGuhy82Uhp +Mzqdp1eaHMdVMqMOTRrNaSLS92HHkQOIQr7YeCSYkNFCua6YNzIvdl5cJUlshL9qpOK dKMvdEdqVdcxQX+Qx7BY3VofuERJL9hzkgBsGSoI2YDU2gEDZOW5JFAkyNnjslZPMszt QAO9GyIkbPLh0maOZFFpV9sGWdnxrHyX2V+rY0yk9mYPKB49r73reyACiAD9BtVlxntm Mx54NBvXIfZb46jSrm3A28rHFL3rnz8emOX5HHLMLPP/4Yz4ZQAuDTJsOUBPOGVINrOz +9iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jkV6DeCj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si1856811pgs.254.2017.08.18.07.18.19; Fri, 18 Aug 2017 07:18:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jkV6DeCj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753605AbdHROSQ (ORCPT + 26 others); Fri, 18 Aug 2017 10:18:16 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:36384 "EHLO mail-wr0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752597AbdHROQw (ORCPT ); Fri, 18 Aug 2017 10:16:52 -0400 Received: by mail-wr0-f175.google.com with SMTP id f8so27684486wrf.3 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=fNx9gWmGqE8aP/3OwtHDJ2O/7bSm3guwPzTAL/BUg7xx8MVA4bFJZytwXpqBaCtVn7 JCRU3x8OrD0dAJwSx74lyMg8ql3EL7kFqPg0Cfjhp42X7ipXlSMnnSqyvij3n3GHpTHN A/xRXJnQmdVuXeG9TUQ0PtRgYVRUlHyuMdx4Wk9kEEyQq4Vy6lFta1/a0ksFuogzjgrf HHOMC3yf40c5C/hMctQu/rcClEsrLo/QPj8fNgOaofYoiKo9q5T4R+f88xs4cDoZRw0n n2akpJWD36q/fP/OWHXKeh0292lqcSoTa24VlfMQbKTeUfO4kjtJs9VZnlLaw5ddQPJc DoaA== X-Gm-Message-State: AHYfb5ic2pSQznetEG4gvnk9IZbuS5Y/BQKDTIeKpmdskkjTrJXXjeQ7 zfwZgFoLtehzVd2X 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.11.0 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;