linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP
@ 2020-10-29  7:48 Coiby Xu
  2020-10-29  7:48 ` [PATCH 02/15] " Coiby Xu
                   ` (14 more replies)
  0 siblings, 15 replies; 25+ messages in thread
From: Coiby Xu @ 2020-10-29  7:48 UTC (permalink / raw)
  To: Lars-Peter Clausen
  Cc: Jonathan Cameron, Peter Meerwald-Stadler,
	open list:IIO SUBSYSTEM AND DRIVERS, open list

SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG.

Signed-off-by: Coiby Xu <coiby.xu@gmail.com>
---
 drivers/iio/accel/da311.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/iio/accel/da311.c b/drivers/iio/accel/da311.c
index 3b3df620ba27..55d4891556ca 100644
--- a/drivers/iio/accel/da311.c
+++ b/drivers/iio/accel/da311.c
@@ -263,7 +263,6 @@ static int da311_remove(struct i2c_client *client)
 	return da311_enable(client, false);
 }
 
-#ifdef CONFIG_PM_SLEEP
 static int da311_suspend(struct device *dev)
 {
 	return da311_enable(to_i2c_client(dev), false);
@@ -273,7 +272,6 @@ static int da311_resume(struct device *dev)
 {
 	return da311_enable(to_i2c_client(dev), true);
 }
-#endif
 
 static SIMPLE_DEV_PM_OPS(da311_pm_ops, da311_suspend, da311_resume);
 
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2020-11-01 17:20 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29  7:48 [PATCH 01/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP Coiby Xu
2020-10-29  7:48 ` [PATCH 02/15] " Coiby Xu
2020-10-29  7:48 ` [PATCH 03/15] " Coiby Xu
2020-10-29  7:48 ` [PATCH 04/15] " Coiby Xu
2020-10-29  7:49 ` [PATCH 05/15] " Coiby Xu
2020-10-29 11:57   ` Andy Shevchenko
2020-10-29 14:41     ` Coiby Xu
2020-10-29  7:49 ` [PATCH 06/15] " Coiby Xu
2020-10-29  7:49 ` [PATCH 07/15] iio: ssp: " Coiby Xu
2020-10-29  7:49 ` [PATCH 08/15] iio: magnetometer: mmc35240: " Coiby Xu
2020-10-29  7:49 ` [PATCH 09/15] iio: adc: palmas_gpadc: " Coiby Xu
2020-10-29  7:49 ` [PATCH 10/15] iio: adc: stm32: " Coiby Xu
2020-10-29 11:31   ` Fabrice Gasnier
2020-10-29  7:49 ` [PATCH 11/15] iio: adc: at91_adc: " Coiby Xu
2020-10-29  7:49 ` [PATCH 12/15] iio: imu: kmx61: " Coiby Xu
2020-10-29  7:49 ` [PATCH 13/15] iio: light: us5182d: " Coiby Xu
2020-10-29  7:49 ` [PATCH 14/15] iio: light: " Coiby Xu
2020-10-29  7:49 ` [PATCH 15/15] iio: proximity: " Coiby Xu
2020-10-29 14:40 ` [PATCH 01/15] iio: accel: " Jonathan Cameron
2020-10-29 14:43   ` Coiby Xu
2020-10-29 17:06   ` Andy Shevchenko
2020-10-30 14:34     ` Coiby Xu
2020-10-31 11:05       ` Jonathan Cameron
2020-10-31 22:47         ` Coiby Xu
2020-11-01 17:20           ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).