From patchwork Thu Oct 10 08:45:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 3014961 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DE4FCBF924 for ; Thu, 10 Oct 2013 08:46:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DEA8620116 for ; Thu, 10 Oct 2013 08:46:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AFE5C20144 for ; Thu, 10 Oct 2013 08:46:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755782Ab3JJIqG (ORCPT ); Thu, 10 Oct 2013 04:46:06 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:39024 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755761Ab3JJIqB (ORCPT ); Thu, 10 Oct 2013 04:46:01 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MUG00MK130E3LW0@mailout4.samsung.com>; Thu, 10 Oct 2013 17:45:54 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id AF.27.31253.24966525; Thu, 10 Oct 2013 17:45:54 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-9f-52566942689f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id BA.34.09055.24966525; Thu, 10 Oct 2013 17:45:54 +0900 (KST) Received: from localhost.localdomain ([10.252.75.83]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MUG00HCH30F2K40@mmp1.samsung.com>; Thu, 10 Oct 2013 17:45:54 +0900 (KST) From: Seung-Woo Kim To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org, m.chehab@samsung.com, s.nawrocki@samsung.com Cc: sw0312.kim@samsung.com Subject: [PATCH] s5p-jpeg: fix encoder and decoder video dev names Date: Thu, 10 Oct 2013 17:45:56 +0900 Message-id: <1381394756-17651-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKLMWRmVeSWpSXmKPExsWyRsSkWNcpMyzI4MBiDYueDVtZLWac38dk cXGdvMXhN+1A3uSXbA6sHn1bVjF6fN4kF8AUxWWTkpqTWZZapG+XwJVx4MZMtoIH3BWXLzxg bmCczNXFyMkhIWAiMevua0YIW0ziwr31bF2MXBxCAksZJa5+XsIEU7Rt10omiMQiRok5z1rZ IZxWJomzkzewg1SxCehI7F/ymxXEFhEokrj29B6YzSwgJbFtKchYTg5hASeJ59+egcVZBFQl VhxeCtbLK+AmcbrnExvENgWJBffegp0hIXCdTeLTt2Z2iAYBiW+TD7F0MXIAJWQlNh1ghqiX lDi44gbLBEbBBYwMqxhFUwuSC4qT0otM9IoTc4tL89L1kvNzNzECg/D0v2cTdjDeO2B9iDEZ aNxEZinR5HxgEOeVxBsamxlZmJqYGhuZW5qRJqwkzqveYh0oJJCeWJKanZpakFoUX1Sak1p8 iJGJg1OqgVFK6Gj3PQHrS/H6fHY8LD/epPz17U2RWapkuddjW/bd8qedMfdkN/Ed2h5sUtV5 VmbJlmWOVqnObQl6JaVhvGWRmxYG87OdnXhuq6/BiQKGsrnfJ81RK36aJtvGOLdxLdvEuCUP 7bo2vr6eu/VK0fePy0411rL+MW0pludPe58ntG65z+7sfCWW4oxEQy3mouJEAPCY09tYAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEIsWRmVeSWpSXmKPExsVy+t9jAV2nzLAgg3evFSx6NmxltZhxfh+T xcV18haH37QDeZNfsjmwevRtWcXo8XmTXABTVAOjTUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7yp mYGhrqGlhbmSQl5ibqqtkotPgK5bZg7QNiWFssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFB cD1GBmggYQ1jxoEbM9kKHnBXXL7wgLmBcTJXFyMnh4SAicS2XSuZIGwxiQv31rN1MXJxCAks YpSY86yVHcJpZZI4O3kDO0gVm4COxP4lv1lBbBGBIolrT++B2cwCUhLbloJ0c3IICzhJPP/2 DCzOIqAqseLwUrBeXgE3idM9n9ggtilILLj3lm0CI/cCRoZVjKKpBckFxUnpuYZ6xYm5xaV5 6XrJ+bmbGMEh/kxqB+PKBotDjAIcjEo8vBVloUFCrIllxZW5hxglOJiVRHinnwQK8aYkVlal FuXHF5XmpBYfYkwG2j6RWUo0OR8Yf3kl8YbGJmZGlkbmhhZGxuakCSuJ8x5otQ4UEkhPLEnN Tk0tSC2C2cLEwSnVwNg/NSTszZm5vKf7xYInPRa/v4N/rlejh6uo+RwzjdvSuyfmFcg9suHx ivmyfMaLi7bvbJIv/w7suRbuV3ul9VtpV9yvBE3vxztMLm1kFxPI2i5bKng0SDAg1Lgx9uM3 9Ta5Uywr3BvMivN/FySpvmJxMApcGHbwisXWY0dX9+dvedcdOXu3ihJLcUaioRZzUXEiAK6O THS1AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is hard to distinguish between decoder and encoder video device because their names are same. So this patch fixes the names. Signed-off-by: Seung-Woo Kim --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 15d2396..d5b4a0d 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -1387,8 +1387,8 @@ static int s5p_jpeg_probe(struct platform_device *pdev) ret = -ENOMEM; goto vb2_allocator_rollback; } - strlcpy(jpeg->vfd_encoder->name, S5P_JPEG_M2M_NAME, - sizeof(jpeg->vfd_encoder->name)); + snprintf(jpeg->vfd_encoder->name, sizeof(jpeg->vfd_encoder->name), + "%s-enc", S5P_JPEG_M2M_NAME); jpeg->vfd_encoder->fops = &s5p_jpeg_fops; jpeg->vfd_encoder->ioctl_ops = &s5p_jpeg_ioctl_ops; jpeg->vfd_encoder->minor = -1; @@ -1415,8 +1415,8 @@ static int s5p_jpeg_probe(struct platform_device *pdev) ret = -ENOMEM; goto enc_vdev_register_rollback; } - strlcpy(jpeg->vfd_decoder->name, S5P_JPEG_M2M_NAME, - sizeof(jpeg->vfd_decoder->name)); + snprintf(jpeg->vfd_decoder->name, sizeof(jpeg->vfd_decoder->name), + "%s-dec", S5P_JPEG_M2M_NAME); jpeg->vfd_decoder->fops = &s5p_jpeg_fops; jpeg->vfd_decoder->ioctl_ops = &s5p_jpeg_ioctl_ops; jpeg->vfd_decoder->minor = -1;