From patchwork Sun Jan 15 13:15:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 9517399 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4B9F0601DA for ; Sun, 15 Jan 2017 13:16:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 422E8283FB for ; Sun, 15 Jan 2017 13:16:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37051283FF; Sun, 15 Jan 2017 13:16:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E94ED283FB for ; Sun, 15 Jan 2017 13:16:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750968AbdAONQF (ORCPT ); Sun, 15 Jan 2017 08:16:05 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34137 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750923AbdAONQE (ORCPT ); Sun, 15 Jan 2017 08:16:04 -0500 Received: by mail-pf0-f193.google.com with SMTP id y143so12472725pfb.1; Sun, 15 Jan 2017 05:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3gGzXjR387ap/0+zA+jGz5HPMGKeR4yWJd5nCMQXenw=; b=Lp2jCqhCs7+shToo6pYAPKsk7LE1EpCKqiKssV0O6humCGbzpdc1+W0GY0oE+BjUo/ Mbq4U2bgzSVn1LelcC9ZVgINa426HqzBYjHE9hL++o7aGQGRDoB/ce3ji+BiUp6CBc1b dREwCbc6+EkG75ptjZbWB5RuFXhzAzDWWtkbU8Clr+J8wU1O7XmLrhw8L/GxMoCtRT5M Yj8PrRHRsWL6Cemgl8Ivaika1WL/bv4Q5J9vPTdE+srurmjoGtRX5UvdFGxy+SfqqQ0m z2S77wLOpuTfAbOnCz00CiMPc8gtqHkXnvg8CnqZW6KZq31yYha/aUSN5/0+z/OoiWfd MS+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3gGzXjR387ap/0+zA+jGz5HPMGKeR4yWJd5nCMQXenw=; b=TSRVonZCMWSu6Av/C27VjDQPPHyzf0lDrUx45H5xs9Xtha6Pc5Oc7m1RWbFejtf6mq m3LREY9mRz0GhB/y3jaZkt3VHQrnP3JiGr/fLK3QJljfRcAkrCBeaVOr58UQbdf9o03K zYyOhAssjz9Z4PhElav0YkOGF+QAKTnhyAMKxJTFWQTY46rvXqGASN1U+BWuDVB5PI6/ pHSU83I8Bc5Yib/Rw9KPY2ve+jL0xsDPfuM2isifu+D/bh54JFBRrPWTYEiTinZPMoNI PllDpuuGq29eiHo3RLV9hFTzSv11bThbs8FTJjafbCrlEYk7v24OGf8SK951AGsFQ913 UMzg== X-Gm-Message-State: AIkVDXIQqoYHG9iQN+gZtbSlmndhBhYzLhyCvIiL4IDj/0UQGyjLTJbk+epwgqG4Y61iFw== X-Received: by 10.84.210.35 with SMTP id z32mr43069123plh.112.1484486163358; Sun, 15 Jan 2017 05:16:03 -0800 (PST) Received: from localhost.localdomain ([240f:4:c2bc:1:9509:afdd:5ccb:93b]) by smtp.gmail.com with ESMTPSA id n70sm10038237pfg.34.2017.01.15.05.16.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 15 Jan 2017 05:16:03 -0800 (PST) From: Akinobu Mita To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: Akinobu Mita , Dmitry Torokhov Subject: [PATCH v2 1/5] Input: mpr121 - annotate PM methods as __maybe_unused Date: Sun, 15 Jan 2017 22:15:40 +0900 Message-Id: <1484486144-27947-2-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484486144-27947-1-git-send-email-akinobu.mita@gmail.com> References: <1484486144-27947-1-git-send-email-akinobu.mita@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Instead of using #ifdef, let's mark suspend and resume methods as __maybe_unused to provide better compile coverage. Cc: Dmitry Torokhov Suggested-by: Dmitry Torokhov Signed-off-by: Akinobu Mita --- * Newly added patch from v2 drivers/input/keyboard/mpr121_touchkey.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/input/keyboard/mpr121_touchkey.c b/drivers/input/keyboard/mpr121_touchkey.c index 0fd612d..a3fd6e5 100644 --- a/drivers/input/keyboard/mpr121_touchkey.c +++ b/drivers/input/keyboard/mpr121_touchkey.c @@ -266,8 +266,7 @@ static int mpr_touchkey_probe(struct i2c_client *client, return 0; } -#ifdef CONFIG_PM_SLEEP -static int mpr_suspend(struct device *dev) +static int __maybe_unused mpr_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); @@ -279,7 +278,7 @@ static int mpr_suspend(struct device *dev) return 0; } -static int mpr_resume(struct device *dev) +static int __maybe_unused mpr_resume(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct mpr121_touchkey *mpr121 = i2c_get_clientdata(client); @@ -292,7 +291,6 @@ static int mpr_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(mpr121_touchkey_pm_ops, mpr_suspend, mpr_resume);