From patchwork Sat Nov 10 22:57:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 1724681 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3E87D3FC8A for ; Sat, 10 Nov 2012 22:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751356Ab2KJW6M (ORCPT ); Sat, 10 Nov 2012 17:58:12 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:53577 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751258Ab2KJW6M (ORCPT ); Sat, 10 Nov 2012 17:58:12 -0500 Received: by mail-wi0-f178.google.com with SMTP id hr7so1464532wib.1 for ; Sat, 10 Nov 2012 14:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=IwPkUVGLE8zFxxxUfY8WEwCVyTHQgAlU9a0/114siYc=; b=lO71T+h53EhhYWojB2Xlx7hn6+wb73OOkq7zxMvJNSg1iqjH6viggmBZDtWDSeVTHV pCccgCFx7U9pFxmciIrV/whl2i2W9I6BLvMKzpb6w/4u0IFGqkPgOQ6eIlZ++uHctobA 1dbZN+ArPoNFv9+2iAXq5SMI62VHVVF3tspR8Bwreged51nJ5xl1W6yxW2UfsgapQ42C AFrpK+ttWjVHrwGZlEyf90dn1T1tGhrCmYjND6P0mj/5iaRZSL50C8TZKlJ/4ZRrD03R k1yMT2ifwNp245znwLqs8qWCvNWY0VLvwT82g7s6dGMF+U+8ztGOZqSE7L+l4kwewvIk LNYQ== Received: by 10.181.11.163 with SMTP id ej3mr8780423wid.11.1352588290996; Sat, 10 Nov 2012 14:58:10 -0800 (PST) Received: from localhost.localdomain (142.130.21.95.dynamic.jazztel.es. [95.21.130.142]) by mx.google.com with ESMTPS id v9sm8257170wif.10.2012.11.10.14.58.09 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 10 Nov 2012 14:58:10 -0800 (PST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: sw0312.kim@samsung.com, Sylwester Nawrocki , Shaik Ameer Basha Subject: [PATCH] exynos-gsc: Add missing video device vfl_dir flag initialization Date: Sat, 10 Nov 2012 23:57:56 +0100 Message-Id: <1352588276-16260-1-git-send-email-sylvester.nawrocki@gmail.com> X-Mailer: git-send-email 1.7.4.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org vfl_dir should be set to VFL_DIR_M2M so valid ioctls for this mem-to-mem device can be properly determined in the v4l2 core. Cc: Shaik Ameer Basha Signed-off-by: Sylwester Nawrocki --- I didn't run-time test this patch. drivers/media/platform/exynos-gsc/gsc-m2m.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/platform/exynos-gsc/gsc-m2m.c b/drivers/media/platform/exynos-gsc/gsc-m2m.c index 3c7f005..88642a8 100644 --- a/drivers/media/platform/exynos-gsc/gsc-m2m.c +++ b/drivers/media/platform/exynos-gsc/gsc-m2m.c @@ -732,6 +732,7 @@ int gsc_register_m2m_device(struct gsc_dev *gsc) gsc->vdev.ioctl_ops = &gsc_m2m_ioctl_ops; gsc->vdev.release = video_device_release_empty; gsc->vdev.lock = &gsc->lock; + gsc->vdev.vfl_dir = VFL_DIR_M2M; snprintf(gsc->vdev.name, sizeof(gsc->vdev.name), "%s.%d:m2m", GSC_MODULE_NAME, gsc->id);