From patchwork Thu Sep 1 11:47:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 9308951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ADAD0607D6 for ; Thu, 1 Sep 2016 11:47:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2FC829310 for ; Thu, 1 Sep 2016 11:47:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97CAF29313; Thu, 1 Sep 2016 11:47:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BFC829310 for ; Thu, 1 Sep 2016 11:47:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933657AbcIALr0 (ORCPT ); Thu, 1 Sep 2016 07:47:26 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:39384 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933481AbcIALrY (ORCPT ); Thu, 1 Sep 2016 07:47:24 -0400 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OCT0312RQ2VE4A0@mailout4.samsung.com>; Thu, 01 Sep 2016 20:47:23 +0900 (KST) X-AuditID: cbfee61b-f79466d000001e3c-60-57c8154b17a0 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id A9.F8.07740.B4518C75; Thu, 1 Sep 2016 04:47:23 -0700 (MST) Received: from AMDC1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OCT00MC2Q2NSA80@mmp1.samsung.com>; Thu, 01 Sep 2016 20:47:23 +0900 (KST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: m.szyprowski@samsung.com, b.zolnierkie@samsung.com, linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH 3/3] s5c73m3: Fix entity function assignment for the OIF subdev Date: Thu, 01 Sep 2016 13:47:07 +0200 Message-id: <1472730427-17821-3-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1472730427-17821-1-git-send-email-s.nawrocki@samsung.com> References: <1472730427-17821-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLJMWRmVeSWpSXmKPExsVy+t9jAV1v0RPhBt9+aFpsnLGe1aJnw1ZW ixnn9zFZrD1yl93i8Jt2VgdWj74tqxg9Pm+SC2CK4rJJSc3JLEst0rdL4Mq49+0mU8F19oqt a3IaGO+xdTFyckgImEhc33WcCcIWk7hwbz1QnItDSGApo8SiY6uYIZxfjBIbp61kBqliEzCU 6D3axwhiiwjISzzpvQHWwSzQwSjRfn0OO0hCWMBf4ubEeywgNouAqsSKFydYQWxeATeJL8uX s0Ksk5M4eWwykM3BwSngLtGz1BQkLARUsvJrC8sERt4FjAyrGCVSC5ILipPSc43yUsv1ihNz i0vz0vWS83M3MYID5Zn0DsbDu9wPMQpwMCrx8M6wPB4uxJpYVlyZe4hRgoNZSYT3ofCJcCHe lMTKqtSi/Pii0pzU4kOM0hwsSuK8j/+vCxMSSE8sSc1OTS1ILYLJMnFwSjUwTq0stT1zyGXD 2Z93p0f2XgrO+JWYsftTd5/7R70m3tNLlnjV1Xwy+7co773khYfu7WVLXrleWDdR3f3T10N9 /zZfuvh88lyjk4frPkbfC/zYe/BN1tw7tVzG633PmyV/XP+5mvfNuuCvd5M2bhcWZEnR4Zbi X3xugnSHq/2HKPngOtP52kxpLUosxRmJhlrMRcWJAOIvx9kQAgAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Suppresses warnings like: s5p-fimc-md camera: Entity type for entity S5C73M3-OIF was not initialized! Signed-off-by: Sylwester Nawrocki --- drivers/media/i2c/s5c73m3/s5c73m3-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/s5c73m3/s5c73m3-core.c b/drivers/media/i2c/s5c73m3/s5c73m3-core.c index 08af58f..3844853 100644 --- a/drivers/media/i2c/s5c73m3/s5c73m3-core.c +++ b/drivers/media/i2c/s5c73m3/s5c73m3-core.c @@ -1706,7 +1706,7 @@ static int s5c73m3_probe(struct i2c_client *client, state->oif_pads[OIF_ISP_PAD].flags = MEDIA_PAD_FL_SINK; state->oif_pads[OIF_JPEG_PAD].flags = MEDIA_PAD_FL_SINK; state->oif_pads[OIF_SOURCE_PAD].flags = MEDIA_PAD_FL_SOURCE; - oif_sd->entity.function = MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN; + oif_sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER; ret = media_entity_pads_init(&oif_sd->entity, OIF_NUM_PADS, state->oif_pads);