From patchwork Wed Jul 30 16:17:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4650211 Return-Path: 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 C9F7CC0338 for ; Wed, 30 Jul 2014 16:17:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CE8B82012B for ; Wed, 30 Jul 2014 16:17:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D7A5B20160 for ; Wed, 30 Jul 2014 16:17:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754466AbaG3QRq (ORCPT ); Wed, 30 Jul 2014 12:17:46 -0400 Received: from mail-vc0-f175.google.com ([209.85.220.175]:44503 "EHLO mail-vc0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754129AbaG3QRp (ORCPT ); Wed, 30 Jul 2014 12:17:45 -0400 Received: by mail-vc0-f175.google.com with SMTP id ik5so2178882vcb.34 for ; Wed, 30 Jul 2014 09:17:44 -0700 (PDT) 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=3azLmMceY+Xe8Zkl4HY92Hjpfnrv8p1gae9YEBOwjo8=; b=rotXCVcIPNToRyck1Ev9EgkbDTFY5jodASQQTopyp3TzgbWXnXl5J88Dbp/xyG+szV IVqflQDfy/cbJuU+69rL0gZGfpCi4qDI59lL+MKmf6mnaoeyhM5gYsLSgEyzyD0z4Xkx JJZVpZT9udngXg9RSXZnV1/u4yjxHpnMIw8IRqWDDeAEZ/+Afl9mFMqmjHZyEt3VanXN jpDhL5R26CJNoUsfYElmRxwyc0ADAQAcDRV3cwFqhxnpVtrePpoit86gB/CybiYSFQQB muQHa89CDTDdsIvQtObsxnoL5XBdk7gGXg29nyXiq8Wao28ScK9ywEejTc2WG1eqNAFe 6xKA== X-Received: by 10.220.119.8 with SMTP id x8mr4123013vcq.62.1406737064864; Wed, 30 Jul 2014 09:17:44 -0700 (PDT) Received: from localhost.localdomain ([186.207.90.28]) by mx.google.com with ESMTPSA id g7sm6589820vdg.0.2014.07.30.09.17.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Jul 2014 09:17:44 -0700 (PDT) From: Fabio Estevam To: dmitry.torokhov@gmail.com Cc: beomho.seo@samsung.com, linux-input@vger.kernel.org, Fabio Estevam Subject: [PATCH 2/2] Input: mcs5000_ts - Remove ifdef Date: Wed, 30 Jul 2014 13:17:19 -0300 Message-Id: <1406737039-1404-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406737039-1404-1-git-send-email-festevam@gmail.com> References: <1406737039-1404-1-git-send-email-festevam@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=-7.5 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 From: Fabio Estevam We can annonate the suspend/resume functions with '__maybe_unused' and get rid of the ifdef, which makes the code smaller and simpler. Signed-off-by: Fabio Estevam --- drivers/input/touchscreen/mcs5000_ts.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/mcs5000_ts.c b/drivers/input/touchscreen/mcs5000_ts.c index 1fb760c..8b47e1f 100644 --- a/drivers/input/touchscreen/mcs5000_ts.c +++ b/drivers/input/touchscreen/mcs5000_ts.c @@ -248,8 +248,7 @@ static int mcs5000_ts_probe(struct i2c_client *client, return 0; } -#ifdef CONFIG_PM_SLEEP -static int mcs5000_ts_suspend(struct device *dev) +static int __maybe_unused mcs5000_ts_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); @@ -259,7 +258,7 @@ static int mcs5000_ts_suspend(struct device *dev) return 0; } -static int mcs5000_ts_resume(struct device *dev) +static int __maybe_unused mcs5000_ts_resume(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct mcs5000_ts_data *data = i2c_get_clientdata(client); @@ -269,7 +268,6 @@ static int mcs5000_ts_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(mcs5000_ts_pm, mcs5000_ts_suspend, mcs5000_ts_resume);