From patchwork Thu Sep 1 11:47:06 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: 9308947 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 8B94C607D6 for ; Thu, 1 Sep 2016 11:47:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80CB029310 for ; Thu, 1 Sep 2016 11:47:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 756A429312; Thu, 1 Sep 2016 11:47:27 +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 0B67E29315 for ; Thu, 1 Sep 2016 11:47:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933644AbcIALrY (ORCPT ); Thu, 1 Sep 2016 07:47:24 -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 S933631AbcIALrW (ORCPT ); Thu, 1 Sep 2016 07:47:22 -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:21 +0900 (KST) X-AuditID: cbfee61b-f79466d000001e3c-5e-57c81549102d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 29.F8.07740.94518C75; Thu, 1 Sep 2016 04:47:21 -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:21 +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 2/3] s5k6a3: Add missing entity function initialization Date: Thu, 01 Sep 2016 13:47:06 +0200 Message-id: <1472730427-17821-2-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+t9jAV1P0RPhBvNvylpsnLGe1aJnw1ZW ixnn9zFZrD1yl93i8Jt2VgdWj74tqxg9Pm+SC2CK4rJJSc3JLEst0rdL4Mp4vXMdc0EzW8X9 T3kNjJNYuxg5OSQETCQ+P1rIDGGLSVy4t56ti5GLQ0hgKaPE4mszmSCcX4wS825vYgOpYhMw lOg92scIYosIyEs86b0B1sEs0MEo0X59DjtIQljAXWLKpXVgDSwCqhKzf+5gArF5BdwkFvxr YYJYJydx8thkoDM4ODiB6nuWmoKEhYBKVn5tYZnAyLuAkWEVo0RqQXJBcVJ6rlFearlecWJu cWleul5yfu4mRnCgPJPewXh4l/shRgEORiUe3hmWx8OFWBPLiitzDzFKcDArifA+FD4RLsSb klhZlVqUH19UmpNafIhRmoNFSZz38f91YUIC6YklqdmpqQWpRTBZJg5OqQZGPyapc+rT14r9 3JS365NBAmNgbZnWwu08im7R2/acebxi+SR/bq6KO/dc1hfXi1zjLYlq9du8QiY+WLNF9UDB 3MBT3M/cC09HPZi636aC+ww3346wE15c/NNv7N3/kvGund7b848Odh/6mFD54tQ724lXz2/+ ypB76y1L/YTF7+fPMau/d/xVkxJLcUaioRZzUXEiAEcBKp0QAgAA 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 warning like: s5p-fimc-md camera: Entity type for entity S5K6A3 13-0010 was not initialized! Signed-off-by: Sylwester Nawrocki --- drivers/media/i2c/s5k6a3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/s5k6a3.c b/drivers/media/i2c/s5k6a3.c index cbe4711..aa46a14 100644 --- a/drivers/media/i2c/s5k6a3.c +++ b/drivers/media/i2c/s5k6a3.c @@ -331,6 +331,7 @@ static int s5k6a3_probe(struct i2c_client *client, sensor->format.width = S5K6A3_DEFAULT_WIDTH; sensor->format.height = S5K6A3_DEFAULT_HEIGHT; + sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; sensor->pad.flags = MEDIA_PAD_FL_SOURCE; ret = media_entity_pads_init(&sd->entity, 1, &sensor->pad); if (ret < 0)