From patchwork Mon Mar 25 10:02: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: 2329711 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 2E0EE3FC54 for ; Mon, 25 Mar 2013 10:03:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752573Ab3CYKDA (ORCPT ); Mon, 25 Mar 2013 06:03:00 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:15798 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751603Ab3CYKC7 (ORCPT ); Mon, 25 Mar 2013 06:02:59 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MK700EPDNWTH140@mailout4.samsung.com> for linux-input@vger.kernel.org; Mon, 25 Mar 2013 19:02:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 40.F8.20872.DC020515; Mon, 25 Mar 2013 19:02:53 +0900 (KST) X-AuditID: cbfee68d-b7f786d000005188-40-515020cd2c79 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 8A.2C.17838.DC020515; Mon, 25 Mar 2013 19:02:53 +0900 (KST) Received: from DOJG1HAN02 ([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 <0MK700H4XNWTPZ10@mmp1.samsung.com>; Mon, 25 Mar 2013 19:02:53 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: 'Dmitry Torokhov' , linux-input@vger.kernel.org, 'Michael Hennerich' , 'Jingoo Han' References: <003a01ce293f$c70c3eb0$5524bc10$%han@samsung.com> In-reply-to: <003a01ce293f$c70c3eb0$5524bc10$%han@samsung.com> Subject: [PATCH 2/2] Input: ad714x - add CONFIG_PM_SLEEP to suspend/resume functions Date: Mon, 25 Mar 2013 19:02:53 +0900 Message-id: <003b01ce293f$ea9a9200$bfcfb600$%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/G3SMS1Ip93r9nf2AAAA4yw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKIsWRmVeSWpSXmKPExsVy+t8zQ92zCgGBBm1/DS0OL3rBaPFw+wtW i8sLL7Fa3Pz0jdViwuHN7A6sHq+uOnrsnHWX3WPK3COsHn1bVjF6fN4kF8AaxWWTkpqTWZZa pG+XwJXRdbCXuaCHr6L70lm2BsZJPF2MnBwSAiYST1ZvZoWwxSQu3FvP1sXIxSEksIxRYsnC LjaYoqkPPoLZQgKLGCV+3jSGKPrFKHF41muwbjYBNYkvXw6zdzFycIgIGErMWFMFUsMsMJdR YvWK+cwgcSEBW4nfT2JAyjkF7CQ6Nu9mBLGFBcIkJjz4xQJiswioSsw5tJ0ZxOYFKp9wdj47 hC0o8WPyPbAaZgEtic3bmlghbHmJzWvego2XEFCXePRXFyQsImAkMaNxLiNEiYjEvhfvGEHO kRC4xy5x4dsuJohdAhLfJh9igeiVldh0gBniXUmJgytusExglJiFZPMsJJtnIdk8C8mKBYws qxhFUwuSC4qT0osM9YoTc4tL89L1kvNzNzFCorR3B+PtA9aHGJOB1k9klhJNzgdGeV5JvKGx mZGFqYmpsZG5pRlpwkrivGot1oFCAumJJanZqakFqUXxRaU5qcWHGJk4OKUaGOdLx75bOMHU 1iv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Nn /jQhR2fpim91inJVf4QtF/lxM5UYS/Q2n1NZJHZLiaU4I9FQi7moOBEARNNWUUUDAAA= 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/ad714x-i2c.c:17:12: warning: 'ad714x_i2c_suspend' defined but not used [-Wunused-function] drivers/input/misc/ad714x-i2c.c:22:12: warning: 'ad714x_i2c_resume' defined but not used [-Wunused-function] drivers/input/misc/ad714x-spi.c:20:12: warning: 'ad714x_spi_suspend' defined but not used [-Wunused-function] drivers/input/misc/ad714x-spi.c:25:12: warning: 'ad714x_spi_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han --- drivers/input/misc/ad714x-i2c.c | 2 +- drivers/input/misc/ad714x-spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/ad714x-i2c.c b/drivers/input/misc/ad714x-i2c.c index 29d2064..e0f5225 100644 --- a/drivers/input/misc/ad714x-i2c.c +++ b/drivers/input/misc/ad714x-i2c.c @@ -13,7 +13,7 @@ #include #include "ad714x.h" -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int ad714x_i2c_suspend(struct device *dev) { return ad714x_disable(i2c_get_clientdata(to_i2c_client(dev))); diff --git a/drivers/input/misc/ad714x-spi.c b/drivers/input/misc/ad714x-spi.c index bdccca4..6189148 100644 --- a/drivers/input/misc/ad714x-spi.c +++ b/drivers/input/misc/ad714x-spi.c @@ -16,7 +16,7 @@ #define AD714x_SPI_CMD_PREFIX 0xE000 /* bits 15:11 */ #define AD714x_SPI_READ BIT(10) -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int ad714x_spi_suspend(struct device *dev) { return ad714x_disable(spi_get_drvdata(to_spi_device(dev)));