From patchwork Sat Aug 9 00:36:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 4702221 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E6AF5C0338 for ; Sat, 9 Aug 2014 00:36:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1985F20179 for ; Sat, 9 Aug 2014 00:36:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F51B20145 for ; Sat, 9 Aug 2014 00:36:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753931AbaHIAg1 (ORCPT ); Fri, 8 Aug 2014 20:36:27 -0400 Received: from qmta10.emeryville.ca.mail.comcast.net ([76.96.30.17]:57200 "EHLO qmta10.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751284AbaHIAgX (ORCPT ); Fri, 8 Aug 2014 20:36:23 -0400 Received: from omta03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by qmta10.emeryville.ca.mail.comcast.net with comcast id cQB01o0020b6N64AAQcPq5; Sat, 09 Aug 2014 00:36:23 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by omta03.emeryville.ca.mail.comcast.net with comcast id cQcM1o0070MU7Qa8PQcM6x; Sat, 09 Aug 2014 00:36:22 +0000 Received: from lorien.sisa.samsung.com (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 28A5642402; Fri, 8 Aug 2014 18:36:21 -0600 (MDT) From: Shuah Khan To: m.chehab@samsung.com, dheitmueller@kernellabs.com Cc: Shuah Khan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] au0828: add au0828_rc_*() stubs for VIDEO_AU0828_RC disabled case Date: Fri, 8 Aug 2014 18:36:18 -0600 Message-Id: <28002d678a82fe2865e712196bd83c7531e35fa4.1407544065.git.shuah.kh@samsung.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1407544583; bh=1mTYOf6KD88nSrZnzUGQv7BxQSV7ApTRnJYbcpIxJK8=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=OfromNg9J0Y2n9iNm3PLouBN4RPfibL3KkWBd71PmFC2nCWNY1ibPC+cQKxJxyfly i5wIjhAP3fjOt3XOxlHM1AAZ/K00lJ9npfink2JJPv+B0/doGwVKsuXT7LC3/I4ktr 96EuXOLRg22M6cLapMG92aYMFrfNcrvQxc3wmn+pYaS9agduw4vhSSI+N6B7VX65/3 tf9/h6aoQXXUv/G5h78qxDfBq+yTB6gj8qOszvRGfvGxUDE+tTZD4L6eZHaTTLH6Cc XB/5S1O0k/xf/oR4Gl8K/MWV5pD2JYYdrSBJN/vHPcQsoOTbmPitoMgIaOhIWNF3xQ 0RneoLXDpIZCA== 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 Define au0828_rc_*() stubs to avoid compile errors when VIDEO_AU0828_RC is disabled and avoid the need to enclose au0828_rc_*() in ifdef CONFIG_VIDEO_AU0828_RC in .c files. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/media/usb/au0828/au0828.h b/drivers/media/usb/au0828/au0828.h index 96bec05..fd0916e 100644 --- a/drivers/media/usb/au0828/au0828.h +++ b/drivers/media/usb/au0828/au0828.h @@ -326,7 +326,14 @@ extern struct videobuf_queue_ops au0828_vbi_qops; } while (0) /* au0828-input.c */ -int au0828_rc_register(struct au0828_dev *dev); -void au0828_rc_unregister(struct au0828_dev *dev); -int au0828_rc_suspend(struct au0828_dev *dev); -int au0828_rc_resume(struct au0828_dev *dev); +#ifdef CONFIG_VIDEO_AU0828_RC +extern int au0828_rc_register(struct au0828_dev *dev); +extern void au0828_rc_unregister(struct au0828_dev *dev); +extern int au0828_rc_suspend(struct au0828_dev *dev); +extern int au0828_rc_resume(struct au0828_dev *dev); +#else +static inline int au0828_rc_register(struct au0828_dev *dev) { return 0; } +static inline void au0828_rc_unregister(struct au0828_dev *dev) { } +static inline int au0828_rc_suspend(struct au0828_dev *dev) { return 0; } +static inline int au0828_rc_resume(struct au0828_dev *dev) { return 0; } +#endif