All of lore.kernel.org
 help / color / mirror / Atom feed
From: Coiby Xu <coiby.xu@gmail.com>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Jonathan Cameron <jic23@kernel.org>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	Nicolas Ferre <nicolas.ferre@microchip.com>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>,
	Ludovic Desroches <ludovic.desroches@microchip.com>,
	linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS),
	linux-arm-kernel@lists.infradead.org (moderated
	list:ARM/Microchip (AT91) SoC support),
	linux-kernel@vger.kernel.org (open list)
Subject: [PATCH 11/15] iio: adc: at91_adc: remove unnecessary CONFIG_PM_SLEEP
Date: Thu, 29 Oct 2020 15:49:06 +0800	[thread overview]
Message-ID: <20201029074910.227859-11-coiby.xu@gmail.com> (raw)
In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com>

SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG.

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

diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 9b2c548fae95..445072b239a6 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -1350,7 +1350,6 @@ static int at91_adc_remove(struct platform_device *pdev)
 	return 0;
 }
 
-#ifdef CONFIG_PM_SLEEP
 static int at91_adc_suspend(struct device *dev)
 {
 	struct iio_dev *idev = dev_get_drvdata(dev);
@@ -1372,7 +1371,6 @@ static int at91_adc_resume(struct device *dev)
 
 	return 0;
 }
-#endif
 
 static SIMPLE_DEV_PM_OPS(at91_adc_pm_ops, at91_adc_suspend, at91_adc_resume);
 
-- 
2.28.0


WARNING: multiple messages have this Message-ID (diff)
From: Coiby Xu <coiby.xu@gmail.com>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>,
	"open list:IIO SUBSYSTEM AND DRIVERS" <linux-iio@vger.kernel.org>,
	open list <linux-kernel@vger.kernel.org>,
	Ludovic Desroches <ludovic.desroches@microchip.com>,
	"moderated list:ARM/Microchip AT91 SoC support"
	<linux-arm-kernel@lists.infradead.org>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	Jonathan Cameron <jic23@kernel.org>
Subject: [PATCH 11/15] iio: adc: at91_adc: remove unnecessary CONFIG_PM_SLEEP
Date: Thu, 29 Oct 2020 15:49:06 +0800	[thread overview]
Message-ID: <20201029074910.227859-11-coiby.xu@gmail.com> (raw)
In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com>

SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG.

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

diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 9b2c548fae95..445072b239a6 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -1350,7 +1350,6 @@ static int at91_adc_remove(struct platform_device *pdev)
 	return 0;
 }
 
-#ifdef CONFIG_PM_SLEEP
 static int at91_adc_suspend(struct device *dev)
 {
 	struct iio_dev *idev = dev_get_drvdata(dev);
@@ -1372,7 +1371,6 @@ static int at91_adc_resume(struct device *dev)
 
 	return 0;
 }
-#endif
 
 static SIMPLE_DEV_PM_OPS(at91_adc_pm_ops, at91_adc_suspend, at91_adc_resume);
 
-- 
2.28.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-10-29  8:05 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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  7:49   ` Coiby Xu
2020-10-29 11:31   ` Fabrice Gasnier
2020-10-29 11:31     ` Fabrice Gasnier
2020-10-29  7:49 ` Coiby Xu [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201029074910.227859-11-coiby.xu@gmail.com \
    --to=coiby.xu@gmail.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ludovic.desroches@microchip.com \
    --cc=nicolas.ferre@microchip.com \
    --cc=pmeerw@pmeerw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.