Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: mcs5000_ts - remove ifdef around power management methods

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 <fabio.estevam@freescale.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Fabio Estevam and committed by
Dmitry Torokhov
9634c152 f1e31b02

+2 -4
+2 -4
drivers/input/touchscreen/mcs5000_ts.c
··· 248 248 return 0; 249 249 } 250 250 251 - #ifdef CONFIG_PM_SLEEP 252 - static int mcs5000_ts_suspend(struct device *dev) 251 + static int __maybe_unused mcs5000_ts_suspend(struct device *dev) 253 252 { 254 253 struct i2c_client *client = to_i2c_client(dev); 255 254 ··· 258 259 return 0; 259 260 } 260 261 261 - static int mcs5000_ts_resume(struct device *dev) 262 + static int __maybe_unused mcs5000_ts_resume(struct device *dev) 262 263 { 263 264 struct i2c_client *client = to_i2c_client(dev); 264 265 struct mcs5000_ts_data *data = i2c_get_clientdata(client); ··· 268 269 269 270 return 0; 270 271 } 271 - #endif 272 272 273 273 static SIMPLE_DEV_PM_OPS(mcs5000_ts_pm, mcs5000_ts_suspend, mcs5000_ts_resume); 274 274