From patchwork Mon Aug 5 06:56:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2838550 Return-Path: X-Original-To: patchwork-linux-input@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 36A20BF535 for ; Mon, 5 Aug 2013 06:56:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5C6B2017B for ; Mon, 5 Aug 2013 06:56:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9F4F02017A for ; Mon, 5 Aug 2013 06:56:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754014Ab3HEG43 (ORCPT ); Mon, 5 Aug 2013 02:56:29 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:11477 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753927Ab3HEG42 (ORCPT ); Mon, 5 Aug 2013 02:56:28 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MR100KX0PXS7NB0@mailout1.samsung.com> for linux-input@vger.kernel.org; Mon, 05 Aug 2013 15:56:27 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id B4.D3.08825.B9C4FF15; Mon, 05 Aug 2013 15:56:27 +0900 (KST) X-AuditID: cbfee68e-b7f276d000002279-73-51ff4c9b8eab Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 1A.3F.31505.B9C4FF15; Mon, 05 Aug 2013 15:56:27 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MR100GYZPY3DC60@mmp1.samsung.com>; Mon, 05 Aug 2013 15:56:27 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: 'Dmitry Torokhov' , linux-input@vger.kernel.org, Jingoo Han Subject: [PATCH 2/4] Input: cy8ctmg110_ts: add CONFIG_PM_SLEEP to suspend/resume Date: Mon, 05 Aug 2013 15:56:27 +0900 Message-id: <001801ce91a8$e7dfa510$b79eef30$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac6RqOVZyM9HxeWiRNmT495XWBEQmA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsVy+t8zA93ZPv8DDa78Fbc4vOgFo8XD7S9Y LS4vvMRqcfPTN1YHFo+ds+6ye0yZe4TVo2/LKkaPz5vkAliiuGxSUnMyy1KL9O0SuDLer7/C XrCNq2LK1F7mBsY3HF2MnBwSAiYSB2+dYIOwxSQu3FsPZHNxCAksY5TovzGPBaao6/ECRojE IkaJk8fusUA4vxglvvU0glWxCahJfPlymL2LkYNDRMBQYsaaKpAws0CqROPhN2AbhAUCJF7t nMkMYrMIqEpc+P+OCcTmFbCU6L9zhhHCFpT4MfkeC0SvlsTmbU2sELa8xOY1b5khDlKQ2HH2 NVi9iICexLoJi5kgakQk9r14B3aohMAudomWs/vZIZYJSHybfIgF5DYJAVmJTQeg5khKHFxx g2UCo9gsJKtnIVk9C8nqWUhWLGBkWcUomlqQXFCclF5kpFecmFtcmpeul5yfu4kREmd9Oxhv HrA+xJgMtH4is5Rocj4wTvNK4g2NzYwsTE1MjY3MLc1IE1YS51V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93fFA6vVHHlf9n6wSzr1sPCP2uZLa5dUtvpUPM FU0lluKMREMt5qLiRADKIR2FJgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.9 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 Add CONFIG_PM_SLEEP to suspend/resume functions to fix the build warnings when CONFIG_PM_SLEEP is not selected. This is because sleep PM callbacks defined by SET_SYSTEM_SLEEP_PM_OPS are only used when the CONFIG_PM_SLEEP is enabled. drivers/input/touchscreen/cy8ctmg110_ts.c:295:12: warning: 'cy8ctmg110_suspend' defined but not used [-Wunused-function] drivers/input/touchscreen/cy8ctmg110_ts.c:309:12: warning: 'cy8ctmg110_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han --- drivers/input/touchscreen/cy8ctmg110_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/cy8ctmg110_ts.c b/drivers/input/touchscreen/cy8ctmg110_ts.c index 96e0eedc..093c274 100644 --- a/drivers/input/touchscreen/cy8ctmg110_ts.c +++ b/drivers/input/touchscreen/cy8ctmg110_ts.c @@ -291,7 +291,7 @@ err_free_mem: return err; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int cy8ctmg110_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); @@ -351,7 +351,7 @@ static struct i2c_driver cy8ctmg110_driver = { .driver = { .owner = THIS_MODULE, .name = CY8CTMG110_DRIVER_NAME, -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP .pm = &cy8ctmg110_pm, #endif },