aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/misc/drv260x.c
diff options
context:
space:
mode:
authorGravatar Jingoo Han <jg1.han@samsung.com> 2014-11-02 00:02:46 -0700
committerGravatar Dmitry Torokhov <dmitry.torokhov@gmail.com> 2014-11-02 00:10:06 -0700
commit97a652a852b821dd2a95b54da8c870b7b38df0e8 (patch)
tree95c4b9db2525dd829cf2f26ae196694af9aca377 /drivers/input/misc/drv260x.c
parentInput: cap11xx - support for irq-active-high option (diff)
downloadlinux-97a652a852b821dd2a95b54da8c870b7b38df0e8.tar.gz
linux-97a652a852b821dd2a95b54da8c870b7b38df0e8.tar.bz2
linux-97a652a852b821dd2a95b54da8c870b7b38df0e8.zip
Input: misc - use __maybe_unused instead of ifdef around suspend/resume
Use __maybe_unused instead of ifdef guards around suspend/resume functions, in order to increase build coverage and fix build warnings. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/drv260x.c')
-rw-r--r--drivers/input/misc/drv260x.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/input/misc/drv260x.c b/drivers/input/misc/drv260x.c
index cab87f5ce6d3..a364e109ca7c 100644
--- a/drivers/input/misc/drv260x.c
+++ b/drivers/input/misc/drv260x.c
@@ -639,8 +639,7 @@ static int drv260x_probe(struct i2c_client *client,
return 0;
}
-#ifdef CONFIG_PM_SLEEP
-static int drv260x_suspend(struct device *dev)
+static int __maybe_unused drv260x_suspend(struct device *dev)
{
struct drv260x_data *haptics = dev_get_drvdata(dev);
int ret = 0;
@@ -672,7 +671,7 @@ out:
return ret;
}
-static int drv260x_resume(struct device *dev)
+static int __maybe_unused drv260x_resume(struct device *dev)
{
struct drv260x_data *haptics = dev_get_drvdata(dev);
int ret = 0;
@@ -702,7 +701,6 @@ out:
mutex_unlock(&haptics->input_dev->mutex);
return ret;
}
-#endif
static SIMPLE_DEV_PM_OPS(drv260x_pm_ops, drv260x_suspend, drv260x_resume);