From patchwork Mon Aug 5 06:56:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2838552 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9280C9F3B9 for ; Mon, 5 Aug 2013 06:56:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C30CE2017A for ; Mon, 5 Aug 2013 06:56:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF17220165 for ; Mon, 5 Aug 2013 06:56:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754272Ab3HEG4q (ORCPT ); Mon, 5 Aug 2013 02:56:46 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:11527 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753927Ab3HEG4p (ORCPT ); Mon, 5 Aug 2013 02:56:45 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MR100IGMPYKSNC0@mailout1.samsung.com> for linux-input@vger.kernel.org; Mon, 05 Aug 2013 15:56:44 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id CC.DA.03969.CAC4FF15; Mon, 05 Aug 2013 15:56:44 +0900 (KST) X-AuditID: cbfee68f-b7f436d000000f81-f9-51ff4caccaa1 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F5.5F.31505.CAC4FF15; Mon, 05 Aug 2013 15:56:44 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MR1000C3PYKDG00@mmp2.samsung.com>; Mon, 05 Aug 2013 15:56:44 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: 'Dmitry Torokhov' , linux-input@vger.kernel.org, Jingoo Han Subject: [PATCH 3/4] Input: eeti_ts: add CONFIG_PM_SLEEP to suspend/resume Date: Mon, 05 Aug 2013 15:56:44 +0900 Message-id: <001901ce91a8$f241b9d0$d6c52d70$@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: Ac6RqO/TJYzgtloTQAi4zrd4aiqlhQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsVy+t8zfd01Pv8DDRp/aVkcXvSC0eLh9hes FpcXXmK1uPnpG6sDi8fOWXfZPabMPcLq0bdlFaPH501yASxRXDYpqTmZZalF+nYJXBnX3+1g K1jIVXGnZSVLA+N1ji5GTg4JAROJxpeHmCFsMYkL99azdTFycQgJLGOUONbVyghT9PXIIajE dEaJd00HoJxfjBKtc9vBqtgE1CS+fDnM3sXIwSEiYCgxY00VSJhZIFWi8fAbNhBbWMBLYtvT 46wgNouAqsTXndPBNvMKWEp827UZyhaU+DH5HgtEr5bE5m1NrBC2vMTmNW+hLlWQ2HH2Ndha EQE9if5729khakQk9r14xwhym4TAJnaJPefvskEsE5D4NvkQC8htEgKyEpsOQM2RlDi44gbL BEaxWUhWz0KyehaS1bOQrFjAyLKKUTS1ILmgOCm9yFivODG3uDQvXS85P3cTIyTO+ncw3j1g fYgxGWj9RGYp0eR8YJzmlcQbGpsZWZiamBobmVuakSasJM6r1mIdKCSQnliSmp2aWpB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8y4Hf6JXS/fXBP458dDiuxFKc kWioxVxUnAgAbI6KZSYDAAA= 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/eeti_ts.c:268:12: warning: 'eeti_ts_suspend' defined but not used [-Wunused-function] drivers/input/touchscreen/eeti_ts.c:287:12: warning: 'eeti_ts_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han --- drivers/input/touchscreen/eeti_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index 8fe5086..a6453b1 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c @@ -264,7 +264,7 @@ static int eeti_ts_remove(struct i2c_client *client) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int eeti_ts_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); @@ -315,7 +315,7 @@ MODULE_DEVICE_TABLE(i2c, eeti_ts_id); static struct i2c_driver eeti_ts_driver = { .driver = { .name = "eeti_ts", -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP .pm = &eeti_ts_pm, #endif },