From: Dmitry Torokhov Date: Thu, 19 Nov 2020 18:10:58 +0000 (-0800) Subject: Input: adp5589-keys - mark suspend and resume methods as __maybe_unused X-Git-Tag: io_uring-5.11-2020-12-23~63^2^2~50 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a26506788320d8dda4e3520dd1b020f20cc7a2fd;p=linux-2.6-block.git Input: adp5589-keys - mark suspend and resume methods as __maybe_unused This improves compile coverage of the code; unused code will be dropped by the linker. Acked-by: Alexandru Ardelean Link: https://lore.kernel.org/r/20201119072418.GA114677@dtor-ws Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/adp5589-keys.c b/drivers/input/keyboard/adp5589-keys.c index 31145a85c819..a9b69a268c09 100644 --- a/drivers/input/keyboard/adp5589-keys.c +++ b/drivers/input/keyboard/adp5589-keys.c @@ -1016,8 +1016,7 @@ static int adp5589_probe(struct i2c_client *client, return 0; } -#ifdef CONFIG_PM_SLEEP -static int adp5589_suspend(struct device *dev) +static int __maybe_unused adp5589_suspend(struct device *dev) { struct adp5589_kpad *kpad = dev_get_drvdata(dev); struct i2c_client *client = kpad->client; @@ -1033,7 +1032,7 @@ static int adp5589_suspend(struct device *dev) return 0; } -static int adp5589_resume(struct device *dev) +static int __maybe_unused adp5589_resume(struct device *dev) { struct adp5589_kpad *kpad = dev_get_drvdata(dev); struct i2c_client *client = kpad->client; @@ -1048,7 +1047,6 @@ static int adp5589_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(adp5589_dev_pm_ops, adp5589_suspend, adp5589_resume);