From patchwork Mon Jan 18 17:41:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 8056811 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0627ABEEED for ; Mon, 18 Jan 2016 17:45:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C6F72038A for ; Mon, 18 Jan 2016 17:45:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 56FCD203AA for ; Mon, 18 Jan 2016 17:45:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aLDpU-0003a9-Gc; Mon, 18 Jan 2016 17:43:00 +0000 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aLDob-0002sS-VI for linux-arm-kernel@lists.infradead.org; Mon, 18 Jan 2016 17:42:07 +0000 Received: by mail-pa0-x236.google.com with SMTP id cy9so437234013pac.0 for ; Mon, 18 Jan 2016 09:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DMpUPFPDCJN94gfURCnLcxJUVDkHER+x4U7n6j1tKmM=; b=iHdKMO50GWvhBtZop1CHCG6+K37+zvddPDFBXj+Lg8FSTLqW6ZJaqghQu+daLw71r9 oL3cbrr5QyP7M0i+eEzVt0912O6P9IdgIIHo7k8lmItLak8wmTCF9lYow/0QoLRl4Ndj vaTXPmbi18UiRjnPw3dFy8NLz5qle6B/T9Pz7MU/MDXtt07nDGyH5ADC7Vlgdwg0QtRL EcwhJHw6hRLtkSDPSyAuaNNDgUUTgGfWWJEumWtIGn+NULMK01fOgKkQJzGIHbuTydEn pWpbZjfXru9YBujkSkLIvMQoOl4vCDeHGVCY31hMLug7LZIHVgO9D1n2+skkZomqgJt5 R98w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DMpUPFPDCJN94gfURCnLcxJUVDkHER+x4U7n6j1tKmM=; b=Oy3zHTEfimepKme412p3pj773VohNj2NqmQVXpctiQpgO8jQHGXgZsxXNGQAwvr0sF zhZxZOu9PUR9EscgJLRwg8BXQ9g8g5tsKkqVsy9x5H22nBczqSIReN677sgZRvFbwj7y zwc1dsK14yOiB2b+dWUbfq2B74malwKCTVpgMaEnlHjirQqe9Z/11YqV2E71+r054hI3 UPiCK965unkzUpwPH3BLtfI3ldH4PcHj+4vCTfqsE+j+3njwqK+aGm+ILfDzabl8wTFh M+UnwpDDBzSRReh1zcKKVflumyHW2mz12b//dnRoOlFoMN0bBBWhV1GR0DZQck1WFHLn 8xFA== X-Gm-Message-State: ALoCoQnG3ftV8HxwYJBiX5cPexkcLwsmEPNL0m+HW5nuovjTgtoU5sO95M0jaK4krKt3XvbVQbK5iukBE6uRVMwpXkCe0pcTtg== X-Received: by 10.66.162.164 with SMTP id yb4mr38318076pab.94.1453138905235; Mon, 18 Jan 2016 09:41:45 -0800 (PST) Received: from dtor-ws.mtv.corp.google.com ([172.22.64.149]) by smtp.gmail.com with ESMTPSA id o75sm35479881pfi.17.2016.01.18.09.41.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jan 2016 09:41:44 -0800 (PST) From: Dmitry Torokhov To: linux-input@vger.kernel.org, =?UTF-8?q?Timo=20Ter=C3=A4s?= , Daniel Mack Subject: [PATCH 1/4] Input: rotary_encoder - mark PM methods as __maybe_unused Date: Mon, 18 Jan 2016 09:41:39 -0800 Message-Id: <1453138902-11657-2-git-send-email-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1453138902-11657-1-git-send-email-dmitry.torokhov@gmail.com> References: <1453138902-11657-1-git-send-email-dmitry.torokhov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160118_094206_161552_D3B16C9D X-CRM114-Status: GOOD ( 10.89 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Jarzmik , linux-arm-kernel@lists.infradead.org, Haojian Zhuang , linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Instead of guarding PM methods with #ifdef let's mark them as __maybe_unused as it allows for better compile coverage. Signed-off-by: Dmitry Torokhov --- drivers/input/misc/rotary_encoder.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index 7828bd1..b9a86ca 100644 --- a/drivers/input/misc/rotary_encoder.c +++ b/drivers/input/misc/rotary_encoder.c @@ -381,8 +381,7 @@ static int rotary_encoder_probe(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP -static int rotary_encoder_suspend(struct device *dev) +static int __maybe_unused rotary_encoder_suspend(struct device *dev) { struct rotary_encoder *encoder = dev_get_drvdata(dev); @@ -394,7 +393,7 @@ static int rotary_encoder_suspend(struct device *dev) return 0; } -static int rotary_encoder_resume(struct device *dev) +static int __maybe_unused rotary_encoder_resume(struct device *dev) { struct rotary_encoder *encoder = dev_get_drvdata(dev); @@ -405,10 +404,9 @@ static int rotary_encoder_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(rotary_encoder_pm_ops, - rotary_encoder_suspend, rotary_encoder_resume); + rotary_encoder_suspend, rotary_encoder_resume); static struct platform_driver rotary_encoder_driver = { .probe = rotary_encoder_probe,