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: 8056781 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 059369F440 for ; Mon, 18 Jan 2016 17:44:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 409D62045E for ; Mon, 18 Jan 2016 17:44:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62D202045A for ; Mon, 18 Jan 2016 17:44:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754555AbcARRl7 (ORCPT ); Mon, 18 Jan 2016 12:41:59 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35811 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756068AbcARRlp (ORCPT ); Mon, 18 Jan 2016 12:41:45 -0500 Received: by mail-pa0-f47.google.com with SMTP id ho8so176268583pac.2; 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=FEfUa/pBS0jJ4HFXoCy/81nQnqDndUsJ/v5WXzEq+h8lepsqV9zoYGC0mvPYDwC9/2 a89q0Zp18km7fTqEPyGUievDjKo6hH43auoO5EozDglXL8cJjXyDtyqDuOWnoflajtzH b2O5D5HoYAk9ICwyWT2azoGtLnzyRPEVDzTgxHqbX9RYgscbjJhDSn+zl3ABTHDarRR4 P3b3f9mwuUw6YuyjYYt1tEfczumN63K75ut/CyvC9b8dXsfFpfMFnBUx+T4w+7knLNvh rank5NN5WrwkgnYtZjODtWHNUtmhZTvKLz4DXtR8/SFa4h3xTmH3/gKqWjV0Kq3E/g5s IfuA== X-Gm-Message-State: ALoCoQlT8ZQaBxHDmzDQNEGrOifYMZfG7TACuOw9JqMNa7gtXOvsx3AoWIYGNrvsvdSVRMLt4UjUaN28oOPYOh7aFNoIJaBHHw== 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 Cc: Haojian Zhuang , Robert Jarzmik , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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,