Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2019530rwr; Fri, 21 Apr 2023 03:06:41 -0700 (PDT) X-Google-Smtp-Source: AKy350bS/sDKR4RX0wosESm/0LakKUcyY8c8VidljfP0gCmKF6Dt2fq3CCOS+HaivLqrBGbapWEn X-Received: by 2002:a05:6a20:a482:b0:db:f682:65ed with SMTP id y2-20020a056a20a48200b000dbf68265edmr4506288pzk.61.1682071601109; Fri, 21 Apr 2023 03:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682071601; cv=none; d=google.com; s=arc-20160816; b=RAQ7o5hepWlmTiKZjkYX65nnHRi5STf4xjiLxi2QUBk9fdfU3CbaMdsh3ii91FbOi0 k7RQDBdf5u82Fd5uVasQLHywYM55xcmph0ShVDRAXTqvwVV8WClrATBhvzm4sIx6NQhX ohvWDBqtXXNmPYY4Gj+QjZDfEleIRQNrMUq4yFxf7DA7aFhQmic2mPCTW5XGOL3dL2s+ HPROzUMHsLxStaHe/4txwN2DaOaxCKcnBEi2spBY7jlqY9l9QOyoOWYMpB8FBBiSbzel djbx8ibKKASSEnjpvkg798tknCOHf+8TgQls+1fXgUyVfSfNLxStSDRZNh5gJx4cdD1z wlOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=rDJjkLEWgWQKOCBzrTnDZV9WdVOoQEU3x29VW9Nmsbs=; b=sVaIbBcgWdXYwnGlaxWSEaTflZbwMHQYzZuGdYTnVsSrJNUmC8kUCBXsjhgTwKm0Xz zchBuPH92FmVpI3zXxZCUgYZXLwDtgS9dy50WFP/bvpRZoCTW2JBWrDRa+X/HkDxmt+n n3iWpXDNUPOsrzMphnJIzMABN6w8EMkixqYMFnCzgy/GglyY84RY9LsH4cdFpjBMKh4W 3V2Q2glOSNcUilTkdCv+tQcs33pxqOOETrX5u/LfWdgMYvwiZ3WUI8Lh8lsHxMsw1T6P HXINjRjz+0vSn8GBjKJrxUlDF6gr5BDgvfXJYpPGJA2CQTi3tULinoLPAZXSiGPSAYYh gvbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=D8sVJla+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq10-20020a17090b380a00b0023d1bcea88bsi7294170pjb.66.2023.04.21.03.06.23; Fri, 21 Apr 2023 03:06:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=D8sVJla+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231148AbjDUKE7 (ORCPT + 99 others); Fri, 21 Apr 2023 06:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231594AbjDUKEn (ORCPT ); Fri, 21 Apr 2023 06:04:43 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE4A4B755; Fri, 21 Apr 2023 03:04:39 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33LA4WaS065937; Fri, 21 Apr 2023 05:04:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682071472; bh=rDJjkLEWgWQKOCBzrTnDZV9WdVOoQEU3x29VW9Nmsbs=; h=From:To:CC:Subject:Date; b=D8sVJla+D03D+rTjFYdJYGK6Z413A/fMQrNXYE8Rq3HcriAblgInpKYu6fALLqEkM WlnEciMGm9BM2Rv/oYjm4upl4GbZ/hU7ww2M6PGuoWZOXftxIoLB8/bYMHOMmgW2Jf 95eEPm//P58AIuSi8L0wGqwyiTwNmAmAVobrPOds= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33LA4WKv115829 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 21 Apr 2023 05:04:32 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 21 Apr 2023 05:04:32 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Fri, 21 Apr 2023 05:04:32 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33LA4UIF005944; Fri, 21 Apr 2023 05:04:31 -0500 From: Vaishnav Achath To: , , , CC: , , , Subject: [PATCH] media: v4l2-mc: Drop subdev check in v4l2_create_fwnode_links_to_pad() Date: Fri, 21 Apr 2023 15:34:30 +0530 Message-ID: <20230421100430.28962-1-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While updating v4l2_create_fwnode_links_to_pad() to accept non-subdev sinks, the check is_media_entity_v4l2_subdev() was not removed which prevented the function from being used with non-subdev sinks, Drop the unnecessary check. Fixes: bd5a03bc5be8 ("media: Accept non-subdev sinks in v4l2_create_fwnode_links_to_pad()") Signed-off-by: Vaishnav Achath --- drivers/media/v4l2-core/v4l2-mc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-mc.c b/drivers/media/v4l2-core/v4l2-mc.c index bf0c18100664..22fe08fce0a9 100644 --- a/drivers/media/v4l2-core/v4l2-mc.c +++ b/drivers/media/v4l2-core/v4l2-mc.c @@ -314,8 +314,7 @@ int v4l2_create_fwnode_links_to_pad(struct v4l2_subdev *src_sd, { struct fwnode_handle *endpoint; - if (!(sink->flags & MEDIA_PAD_FL_SINK) || - !is_media_entity_v4l2_subdev(sink->entity)) + if (!(sink->flags & MEDIA_PAD_FL_SINK)) return -EINVAL; fwnode_graph_for_each_endpoint(dev_fwnode(src_sd->dev), endpoint) { -- 2.17.1