From patchwork Tue Oct 31 16:45:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 117658 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4137829qgn; Tue, 31 Oct 2017 09:46:23 -0700 (PDT) X-Google-Smtp-Source: ABhQp+T9D+Nx5z1RsMrqdjh9xiPe4VrvxBeqLPu4lhUu9RGHhoGgYPiwZSd7MgJfktaiR7oIHJd7 X-Received: by 10.99.111.5 with SMTP id k5mr2246611pgc.364.1509468383587; Tue, 31 Oct 2017 09:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509468383; cv=none; d=google.com; s=arc-20160816; b=LS5UcKB8cGQg5WmtTMys8LxhldcL7y1sHgfnQh+9mZ5ADO2cOX/Ox8oZjaViZVflHP y1TWUZfY7eIbF8FR7lzVibbzrjXi8bX8B2R7TopK0EX6r5tQImNZxd7gOEJmHYB2K/at haRuRz49fMroPmBpNAikoW1k0CMGH0c7bSSndb0mYZRCn2GUgdMqvAAFdvYGsQKtYCFG LXiGu8fubfBpKt82G18dPKNE48zyFuXtV38wbqgGNxENyzAa1D+prEwxpZX2iqt/m1Vv zlgWrkkm2vZhcmdTMqm8TANtWjVSTwPgzL67P3p85nCYI4QrujoM0IDnTTOyx2RMJQEP AJSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=gsDDhjumCPAV6LONSMI+skweD2LXtOL+8DBXVZranr0=; b=dgm1wjM1Szthi/SuhYEo4F9ZFDbBCQCsX1OyefTml2J87lOUhPVCCaLOVfAE+iBdcX Y6j38/w+PcFXQsTAH6enlGJu0RKw3UDu2UB+1R275b3tCqXGoQJ1DCf/V6Lnrfy/rf9H QlEC5qmjJKdrQnUW3epdlKzNBnK7v6MkfvN1X/nBfuU4MYxZNlffFRpKD0q7dn6ubiMd kxHoXGcoGnJlxuYZXwcb04D3gjefQMm+PuDj/Lzow4gKsNHHJ54weupadTdEZcvXBSdq l+fE4XFbXRF3U35xDsWllX1DnaRT3RgfLh7CwrpcjRBjRRqBCAbjVxUAY9aB+y+ZhiT3 Vaeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=RhkJ5ZUC; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o187si1842706pga.831.2017.10.31.09.46.23; Tue, 31 Oct 2017 09:46:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=@samsung.com header.s=mail20170921 header.b=RhkJ5ZUC; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753920AbdJaQqV (ORCPT + 4 others); Tue, 31 Oct 2017 12:46:21 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57096 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753595AbdJaQp4 (ORCPT ); Tue, 31 Oct 2017 12:45:56 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171031164554euoutp0125226c9c094f93468090a1cbc41ccc89~ytXiIK-Tn2800428004euoutp01Y; Tue, 31 Oct 2017 16:45:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171031164554euoutp0125226c9c094f93468090a1cbc41ccc89~ytXiIK-Tn2800428004euoutp01Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1509468354; bh=gsDDhjumCPAV6LONSMI+skweD2LXtOL+8DBXVZranr0=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=RhkJ5ZUCPUTSXYIDWwM3yOIkW4sI3eGM6m1YuhA+27WO0TW1y8vO22vdw0kob95iL 4gE2GB98tNOqInnvKg2irSijb3a57TSnh8ptMfTx3zlOhbGMYfrfXjKeQR3nsVE7b6 ANTGhFidi+WivAiuaDoKWZawqnG/kI2bdj0N2hZA= Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171031164553eucas1p1bd8d98e3554e59886eaa2cc72c51b3cd~ytXhRnmYI1794317943eucas1p1L; Tue, 31 Oct 2017 16:45:53 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 6E.A7.12743.1C8A8F95; Tue, 31 Oct 2017 16:45:53 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171031164552eucas1p2c8074f30e1d31d4706381fbd47a3cfb6~ytXgmVjvk0681806818eucas1p2L; Tue, 31 Oct 2017 16:45:52 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d0000031c7-e6-59f8a8c1e203 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 24.34.18832.0C8A8F95; Tue, 31 Oct 2017 16:45:52 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OYP00M9858AMC90@eusync1.samsung.com>; Tue, 31 Oct 2017 16:45:52 +0000 (GMT) From: Marek Szyprowski To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Hans Verkuil Subject: [PATCH 2/2] media: exynos4-is: drop obsolete capabilities Date: Tue, 31 Oct 2017 17:45:44 +0100 Message-id: <20171031164544.2401-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20171031164544.2401-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJIsWRmVeSWpSXmKPExsWy7djPc7oHV/yINLi5js/i1ORnTBY9G7ay Wsw4v4/JYu2Ru+wWh9+0szqwevRtWcXo8XmTnMepr5/ZA5ijuGxSUnMyy1KL9O0SuDI+7brK VDCTu+LEqyPsDYw7ObsYOTkkBEwk5p+9yQJhi0lcuLeerYuRi0NIYCmjxPed+6Gcz4wS1ydN ZoPp+H3tIgtEYhmjxKozf9ghnAYmic6Dj1lBqtgEDCW63naBdYgIOEksnPUXrIhZoJFR4vaJ tewgCWGgxKx/M4BsDg4WAVWJLfO9QUxeARuJhlV6EMvkJd4vuM8IYnMK2EocPPeOFWSMhMBX VonNCy6yQxS5SBzs+8wMYQtLvDq+BSouI9HZcZAJwu5nlGhq1YawZzBKnHvLC2FbSxw+fhHs ZmYBPolJ26Yzg9wgIcAr0dEmBFHiIXF+z2WokY4StxuPM0L8O4FR4v/3c4wTGKUXMDKsYhRJ LS3OTU8tNtUrTswtLs1L10vOz93ECIzA0/+Of93BuPSY1SFGAQ5GJR7eGYnfI4VYE8uKK3MP MUpwMCuJ8CYt/xEpxJuSWFmVWpQfX1Sak1p8iFGag0VJnNc2qi1SSCA9sSQ1OzW1ILUIJsvE wSnVwKj0LbBhf6HJLHM2iaXfPc5fW5b3fVFt3c7vbHv/O/C9quPbcUROwOaXEssWD98FujeE 3FuzT4hcOlXEE8lkt/jEbQMT0bqAbxJ9Pfzc3/cvUND6L31gmfL6SW4hvy+fimE+2Bl2/Pi2 tdsObLZ0P6+W+UDhV+kxlUovtc9bz/tq3ujKYhRxDFRiKc5INNRiLipOBACLuDhrvAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHJMWRmVeSWpSXmKPExsVy+t/xy7oHVvyINJhyUdfi1ORnTBY9G7ay Wsw4v4/JYu2Ru+wWh9+0szqwevRtWcXo8XmTnMepr5/ZA5ijuGxSUnMyy1KL9O0SuDI+7brK VDCTu+LEqyPsDYw7ObsYOTkkBEwkfl+7yAJhi0lcuLeerYuRi0NIYAmjxMSva1ghnCYmiV3L l7GDVLEJGEp0ve1iA7FFBJwkFs76yw5SxCzQyCix//kRsFHCQIlZ/2YAJTg4WARUJbbM9wYx eQVsJBpW6UEsk5d4v+A+I4jNKWArcfDcO1YQWwioZMHnr4wTGHkXMDKsYhRJLS3OTc8tNtQr TswtLs1L10vOz93ECAyVbcd+bt7BeGlj8CFGAQ5GJR7eGYnfI4VYE8uKK3MPMUpwMCuJ8CYt /xEpxJuSWFmVWpQfX1Sak1p8iFGag0VJnLd3z+pIIYH0xJLU7NTUgtQimCwTB6dUA6PKy/t8 kn9uzTx046Kxx6xzjJqOXxuvfqnaHpzKa7OdI64545Ujb55sxYM3vkfOlu5dcLjz/9Gtcy+d Orq0lml3OfPilc8aTTN/LwiuijstFie+ZF8tV+fzvROuVX8S0GmYe891iZvNkQVFd4WVohd/ 4PcPSbzb/mF/kcxUFxsmswdacfsE3MOUWIozEg21mIuKEwEbFqWKEQIAAA== X-CMS-MailID: 20171031164552eucas1p2c8074f30e1d31d4706381fbd47a3cfb6 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171031164552eucas1p2c8074f30e1d31d4706381fbd47a3cfb6 X-RootMTR: 20171031164552eucas1p2c8074f30e1d31d4706381fbd47a3cfb6 References: <20171031164544.2401-1-m.szyprowski@samsung.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Setting both V4L2_CAP_VIDEO_CAPTURE_MPLANE and V4L2_CAP_VIDEO_OUTPUT_MPLANE for mem2mem video nodes is obsolete since commit f0476a83d61a ("[media] V4L: Add capability flags for memory-to-memory devices"). It was enough time to adapt all users to the new flags, so drop the legacy caps for now to match other mem2mem drivers. Signed-off-by: Marek Szyprowski --- drivers/media/platform/exynos4-is/fimc-m2m.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) -- 2.14.2 diff --git a/drivers/media/platform/exynos4-is/fimc-m2m.c b/drivers/media/platform/exynos4-is/fimc-m2m.c index 9027d0b0d2bd..a19f8b164a47 100644 --- a/drivers/media/platform/exynos4-is/fimc-m2m.c +++ b/drivers/media/platform/exynos4-is/fimc-m2m.c @@ -236,15 +236,7 @@ static int fimc_m2m_querycap(struct file *file, void *fh, struct v4l2_capability *cap) { struct fimc_dev *fimc = video_drvdata(file); - unsigned int caps; - - /* - * This is only a mem-to-mem video device. The capture and output - * device capability flags are left only for backward compatibility - * and are scheduled for removal. - */ - caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE | - V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_VIDEO_OUTPUT_MPLANE; + unsigned int caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE; __fimc_vidioc_querycap(&fimc->pdev->dev, cap, caps); return 0;