From patchwork Tue Aug 11 13:26:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 6992331 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B5DF69F39D for ; Tue, 11 Aug 2015 13:26:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E326420609 for ; Tue, 11 Aug 2015 13:26:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07BC020605 for ; Tue, 11 Aug 2015 13:26:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934226AbbHKN0Y (ORCPT ); Tue, 11 Aug 2015 09:26:24 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:55205 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934066AbbHKN0X (ORCPT ); Tue, 11 Aug 2015 09:26:23 -0400 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NSX021876NXE000@mailout1.samsung.com> for linux-media@vger.kernel.org; Tue, 11 Aug 2015 22:26:21 +0900 (KST) X-AuditID: cbfee61a-f79a06d000005c6f-ab-55c9f7fdbe43 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id D2.70.23663.DF7F9C55; Tue, 11 Aug 2015 22:26:21 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NSX002FN6NQ2B20@mmp1.samsung.com>; Tue, 11 Aug 2015 22:26:21 +0900 (KST) From: Jacek Anaszewski To: linux-media@vger.kernel.org Cc: Jacek Anaszewski , Hans Verkuil Subject: [PATCH] media: flash: Don't initialize core ops Date: Tue, 11 Aug 2015 15:26:12 +0200 Message-id: <1439299572-9293-1-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAJMWRmVeSWpSXmKPExsVy+t9jAd2/30+GGvT+NrFY8nMXk0Xv1eeM Fj0btrI6MHtM+b2R1aNvyypGj8+b5AKYo7hsUlJzMstSi/TtErgyjn//xFxwjaNi3+YXzA2M O9i7GDk5JARMJCY8aGKBsMUkLtxbz9bFyMUhJLCUUWLz2y2MEM5PRonVV18ygVSxCRhK/Hzx GswWEZCXeNJ7gw3EZhaIkPj8/TEriC0sYCFxfDdEPYuAqsTdCVOYQWxeAXeJ63dfA23mANqm IDFnks0ERu4FjAyrGCVSC5ILipPScw3zUsv1ihNzi0vz0vWS83M3MYL9/UxqB+PBXe6HGAU4 GJV4eAU8T4YKsSaWFVfmHmKU4GBWEuHlOA0U4k1JrKxKLcqPLyrNSS0+xCjNwaIkziu7YXOo kEB6YklqdmpqQWoRTJaJg1OqgbGZPzNU9uTru7zbn/SG3q3YX/C8K1b0fUR4UGTy3ndLomZ6 dbPn7V0tLbW4b/u2u4/YE/hy3dmuO36XX99ukpQ+0dp29iw3P+OUKA998S0KSUL+gaVFgnPM 5RrzT9wKq48OeCj5Nzq8vUhSbK/xJcXYMAFDm6pFW6a0ymbOy3z++rfp2afxSizFGYmGWsxF xYkAKUyPafMBAAA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 queryctrl and querymenu menu ops don't need to be initialized if sd.ctrl_handler is set. Since no other core ops are required by the wrapper don't initialize related field of v4l2_flash_subdev_ops. Signed-off-by: Jacek Anaszewski Cc: Hans Verkuil --- drivers/media/v4l2-core/v4l2-flash-led-class.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-flash-led-class.c b/drivers/media/v4l2-core/v4l2-flash-led-class.c index 5bdfb8d..57a1829 100644 --- a/drivers/media/v4l2-core/v4l2-flash-led-class.c +++ b/drivers/media/v4l2-core/v4l2-flash-led-class.c @@ -609,13 +609,7 @@ static const struct v4l2_subdev_internal_ops v4l2_flash_subdev_internal_ops = { .close = v4l2_flash_close, }; -static const struct v4l2_subdev_core_ops v4l2_flash_core_ops = { - .queryctrl = v4l2_subdev_queryctrl, - .querymenu = v4l2_subdev_querymenu, -}; - static const struct v4l2_subdev_ops v4l2_flash_subdev_ops = { - .core = &v4l2_flash_core_ops, }; struct v4l2_flash *v4l2_flash_init(