Message ID | 000f01ce91a8$c2f2ac20$48d80460$@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-input-owner@kernel.org> 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 E7A4BBF535 for <patchwork-linux-input@patchwork.kernel.org>; Mon, 5 Aug 2013 06:55:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E8BFF2017A for <patchwork-linux-input@patchwork.kernel.org>; Mon, 5 Aug 2013 06:55:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5F8F20165 for <patchwork-linux-input@patchwork.kernel.org>; Mon, 5 Aug 2013 06:55:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754725Ab3HEGza (ORCPT <rfc822;patchwork-linux-input@patchwork.kernel.org>); Mon, 5 Aug 2013 02:55:30 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:43359 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754272Ab3HEGz0 (ORCPT <rfc822; linux-input@vger.kernel.org>); Mon, 5 Aug 2013 02:55:26 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MR100C76PW6B3C0@mailout3.samsung.com> for linux-input@vger.kernel.org; Mon, 05 Aug 2013 15:55:25 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id BA.53.08825.D5C4FF15; Mon, 05 Aug 2013 15:55:25 +0900 (KST) X-AuditID: cbfee68e-b7f276d000002279-19-51ff4c5d7b44 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B6.99.32250.D5C4FF15; Mon, 05 Aug 2013 15:55:25 +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 <0MR1000FWPWDCC00@mmp2.samsung.com>; Mon, 05 Aug 2013 15:55:25 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Dmitry Torokhov' <dmitry.torokhov@gmail.com> Cc: 'Dmitry Torokhov' <dtor@mail.ru>, linux-input@vger.kernel.org, 'Jingoo Han' <jg1.han@samsung.com> Subject: [PATCH 1/4] Input: max7359: add CONFIG_PM_SLEEP to suspend/resume Date: Mon, 05 Aug 2013 15:55:25 +0900 Message-id: <000f01ce91a8$c2f2ac20$48d80460$@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: Ac6RqL67+Hr1rqkpRwSZp1EoG4escA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsVy+t8zY91Yn/+BBrNeiVgcXvSC0eLh9hes FpcXXmK1uPnpG6sDi8fOWXfZPabMPcLq0bdlFaPH501yASxRXDYpqTmZZalF+nYJXBktC5az FtzgqGg6+o65gXEfexcjJ4eEgIlEy7O1bBC2mMSFe+uBbC4OIYFljBKvJq1mgylqbu+GSkxn lJh/YwozhPOLUWL729uMIFVsAmoSX74cBhrLwSEiYCgxY00ViMkskC5x9qAHSIWwgJfE1nfL WEBsFgFVic2nQcZwcvAKWEpc/tjICmELSvyYfA+shllAS2LztiZWCFteYvOat8wQ9yhI7Dj7 GmyriICexJVPH6BqRCT2vXjHCHKahMA2dokbC2exQSwTkPg2+RALyD0SArISmw5AzZGUOLji BssERr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HiNt9WCq5OxL/56ZXUreq1HL/ppp1spw 66Q+9qfu7Bp6cUxetcJhN3bedn7kOLuVcffNV+w1e4/kBf5JePf0SfXpjo87P0/9fO7c7w9X MqS+Bh3Jag3dL3L1jOGrv39yFm9f+FFEkf9DisW+mQ+3JZR9//xJxGXvlPNbdG48nyWSHO2q xFKckWioxVxUnAgAZs1g7yUDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: <linux-input.vger.kernel.org> 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 |
diff --git a/drivers/input/keyboard/max7359_keypad.c b/drivers/input/keyboard/max7359_keypad.c index 7c7af2b..bc2cdaf 100644 --- a/drivers/input/keyboard/max7359_keypad.c +++ b/drivers/input/keyboard/max7359_keypad.c @@ -271,7 +271,7 @@ static int max7359_remove(struct i2c_client *client) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int max7359_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev);
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/keyboard/max7359_keypad.c:275:12: warning: 'max7359_suspend' defined but not used [-Wunused-function] drivers/input/keyboard/max7359_keypad.c:287:12: warning: 'max7359_resume' defined but not used [-Wunused-function] Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/input/keyboard/max7359_keypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)