From patchwork Mon Mar 25 10:01:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2329701 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id AE9943FC54 for ; Mon, 25 Mar 2013 10:01:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751065Ab3CYKB4 (ORCPT ); Mon, 25 Mar 2013 06:01:56 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:62328 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760Ab3CYKBz (ORCPT ); Mon, 25 Mar 2013 06:01:55 -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 <0MK700HFUNUMRR21@mailout1.samsung.com> for linux-input@vger.kernel.org; Mon, 25 Mar 2013 19:01:54 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 0A.15.07735.29020515; Mon, 25 Mar 2013 19:01:54 +0900 (KST) X-AuditID: cbfee68e-b7f946d000001e37-10-515020928f17 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 30.FB.17838.19020515; Mon, 25 Mar 2013 19:01:54 +0900 (KST) Received: from DOJG1HAN02 ([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 <0MK70017JNV50S50@mmp2.samsung.com>; Mon, 25 Mar 2013 19:01:53 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: 'Dmitry Torokhov' , linux-input@vger.kernel.org, 'Michael Hennerich' , 'Jingoo Han' Subject: [PATCH 1/2] Input: adxl34x - add CONFIG_PM_SLEEP to suspend/resume functions Date: Mon, 25 Mar 2013 19:01:53 +0900 Message-id: <003a01ce293f$c70c3eb0$5524bc10$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4pP8bzr8ntt/G3SMS1Ip93r9nf2A== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zA91JCgGBBpc/c1ocXvSC0eLh9hes FpcXXmK1uPnpG6vFhMOb2R1YPV5ddfTYOesuu8eUuUdYPfq2rGL0+LxJLoA1issmJTUnsyy1 SN8ugStjzrOPzAUL+CouvOpmbmBcx9PFyMkhIWAisfPiFUYIW0ziwr31bF2MXBxCAssYJRpa NrPCFJ18fp8JIjGdUWJF62dmCOcXo8S+3RPAqtgE1CS+fDnM3sXIwSEiYCgxY00VSA2zwFxG idUr5jOD1AgLhEu0zpsIVs8ioCrRvewZ2GpeAVuJMy0b2SFsQYkfk++xgNjMAloSm7c1sULY 8hKb17xlBpkvIaAu8eivLkhYREBP4lDffEaIEhGJfS/eMYLslRA4xS7x82Yb1C4BiW+TD7FA 9MpKbDrADPGYpMTBFTdYJjCKzUKyeRaSzbOQbJ6FZMUCRpZVjKKpBckFxUnpRUZ6xYm5xaV5 6XrJ+bmbGCGR17eD8eYB60OMyUDrJzJLiSbnAyM3ryTe0NjMyMLUxNTYyNzSjDRhJXFetRbr QCGB9MSS1OzU1ILUovii0pzU4kOMTBycUg2MOlWp1rtvVGzcyDvzzDI/A2eTvcds1+5buuI9 S+Hqk7u/njx7QzVTJXR/2I1/p/t7vr584i69LpB5v+a57UemW609qNIef2BhWWyH49L4P9du zGlTSk3NLf1dfGPV0abm/VbVCXeby+8JTA4P2WmstfXVQ/bLZyWtnyeci+QQ/ZTIlda7rsxD S4mlOCPRUIu5qDgRALwMO7DSAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDKsWRmVeSWpSXmKPExsVy+t9jQd1JCgGBBouusFocXvSC0eLh9hes FpcXXmK1uPnpG6vFhMOb2R1YPV5ddfTYOesuu8eUuUdYPfq2rGL0+LxJLoA1qoHRJiM1MSW1 SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdouZJCWWJOKVAoILG4 WEnfDtOE0BA3XQuYxghd35AguB4jAzSQsI4xY86zj8wFC/gqLrzqZm5gXMfTxcjJISFgInHy +X0mCFtM4sK99WxdjFwcQgLTGSVWtH5mhnB+MUrs2z2BFaSKTUBN4suXw+xdjBwcIgKGEjPW VIHUMAvMZZRYvWI+M0iNsEC4ROu8iWD1LAKqEt3LnjGC2LwCthJnWjayQ9iCEj8m32MBsZkF tCQ2b2tihbDlJTavecsMMl9CQF3i0V9dkLCIgJ7Eob75jBAlIhL7XrxjnMAoMAvJpFlIJs1C MmkWkpYFjCyrGEVTC5ILipPScw31ihNzi0vz0vWS83M3MYLj+pnUDsaVDRaHGAU4GJV4eAVq /AOFWBPLiitzDzFKcDArifBqCQUECvGmJFZWpRblxxeV5qQWH2JMBnp0IrOUaHI+MOXklcQb GpuYGVkamVkYmZibkyasJM57oNU6UEggPbEkNTs1tSC1CGYLEwenVAOjj4DulEKOA4u3FRZx pO8+Ll/7aG2e1p8K9eybSmybPdTThA5ySkVLf539iX9R2P9XM98uX+G/9Pzj89ccj7F7/imP T373cVFm7m8ZQ4/1R7fs5fJ5EmacxSYt9jjsnuH92Fzvj+dkj4X3tp38mfQnQEew5+iPz2Lf l3Ul2DExN7jk9fmJPBJRYinOSDTUYi4qTgQAJURbQS8DAAA= 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 Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following build warning when CONFIG_PM_SLEEP is not selected. This is because sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when the CONFIG_PM_SLEEP is enabled. drivers/input/misc/adxl34x-spi.c:98:12: warning: 'adxl34x_spi_suspend' defined but not used [-Wunused-function] drivers/input/misc/adxl34x-spi.c:108:12: warning: 'adxl34x_spi_resume' defined but not used [-Wunused-function] drivers/input/misc/adxl34x-i2c.c:109:12: warning: 'adxl34x_i2c_suspend' defined but not used [-Wunused-function] drivers/input/misc/adxl34x-i2c.c:119:12: warning: 'adxl34x_i2c_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han --- drivers/input/misc/adxl34x-i2c.c | 2 +- drivers/input/misc/adxl34x-spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/adxl34x-i2c.c b/drivers/input/misc/adxl34x-i2c.c index 535dda4..416f47d 100644 --- a/drivers/input/misc/adxl34x-i2c.c +++ b/drivers/input/misc/adxl34x-i2c.c @@ -105,7 +105,7 @@ static int adxl34x_i2c_remove(struct i2c_client *client) return adxl34x_remove(ac); } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int adxl34x_i2c_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); diff --git a/drivers/input/misc/adxl34x-spi.c b/drivers/input/misc/adxl34x-spi.c index ad5f40d..990b49e 100644 --- a/drivers/input/misc/adxl34x-spi.c +++ b/drivers/input/misc/adxl34x-spi.c @@ -94,7 +94,7 @@ static int adxl34x_spi_remove(struct spi_device *spi) return adxl34x_remove(ac); } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int adxl34x_spi_suspend(struct device *dev) { struct spi_device *spi = to_spi_device(dev);