From patchwork Mon Oct 12 15:38:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 7377241 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 66D6DBEEA4 for ; Mon, 12 Oct 2015 15:42:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A0544207CA for ; Mon, 12 Oct 2015 15:42:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CCF142073E for ; Mon, 12 Oct 2015 15:42:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZlfDE-00088U-4U; Mon, 12 Oct 2015 15:40:32 +0000 Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213] helo=hillosipuli.retiisi.org.uk) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZlfDB-0007d4-Mw for linux-arm-kernel@lists.infradead.org; Mon, 12 Oct 2015 15:40:30 +0000 Received: from lanttu.localdomain (lanttu.localdomain [192.168.5.64]) by hillosipuli.retiisi.org.uk (Postfix) with ESMTP id BF1C160096; Mon, 12 Oct 2015 18:40:06 +0300 (EEST) From: Sakari Ailus To: mchehab@osg.samsung.com Subject: [PATCH 1/1] media: Correctly determine whether an entity is a sub-device Date: Mon, 12 Oct 2015 18:38:23 +0300 Message-Id: <1444664303-18454-1-git-send-email-sakari.ailus@iki.fi> X-Mailer: git-send-email 2.1.4 In-Reply-To: <20151011215625.779630d9@recife.lan> References: <20151011215625.779630d9@recife.lan> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151012_084030_011820_A57F1BC9 X-CRM114-Status: UNSURE ( 7.51 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, k.kozlowski@samsung.com, lars@metafoo.de, sakari.ailus@linux.intel.com, hyun.kwon@xilinx.com, linux-sh@vger.kernel.org, gregkh@linuxfoundation.org, michal.simek@xilinx.com, mchehab@infradead.org, javier@osg.samsung.com, kyungmin.park@samsung.com, kgene@kernel.org, hans.verkuil@cisco.com, laurent.pinchart@ideasonboard.com, s.nawrocki@samsung.com, linux-samsung-soc@vger.kernel.org, prabhakar.csengg@gmail.com, elfring@users.sourceforge.net, soren.brinkmann@xilinx.com, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 If the function of an entity is not one of the pre-defined ones, it is not correctly recognised as a V4L2 sub-device. Signed-off-by: Sakari Ailus Reviewed-by: Mauro Carvalho Chehab --- include/media/media-entity.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/media/media-entity.h b/include/media/media-entity.h index a60872a..76e9a124 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@ -328,6 +328,7 @@ static inline bool is_media_entity_v4l2_subdev(struct media_entity *entity) case MEDIA_ENT_F_LENS: case MEDIA_ENT_F_ATV_DECODER: case MEDIA_ENT_F_TUNER: + case MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN: return true; default: