linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
@ 2016-04-14  1:08 Axel Lin
  2016-04-14  1:08 ` [PATCH 2/2] i2c: s3c2410: " Axel Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Axel Lin @ 2016-04-14  1:08 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Kukjin Kim, Krzysztof Kozlowski, linux-i2c, linux-samsung-soc

Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/i2c/busses/i2c-exynos5.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c
index b29c750..8710052 100644
--- a/drivers/i2c/busses/i2c-exynos5.c
+++ b/drivers/i2c/busses/i2c-exynos5.c
@@ -847,14 +847,8 @@ static int exynos5_i2c_resume_noirq(struct device *dev)
 #endif
 
 static const struct dev_pm_ops exynos5_i2c_dev_pm_ops = {
-#ifdef CONFIG_PM_SLEEP
-	.suspend_noirq = exynos5_i2c_suspend_noirq,
-	.resume_noirq = exynos5_i2c_resume_noirq,
-	.freeze_noirq = exynos5_i2c_suspend_noirq,
-	.thaw_noirq = exynos5_i2c_resume_noirq,
-	.poweroff_noirq = exynos5_i2c_suspend_noirq,
-	.restore_noirq = exynos5_i2c_resume_noirq,
-#endif
+	SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(exynos5_i2c_suspend_noirq,
+				      exynos5_i2c_resume_noirq)
 };
 
 static struct platform_driver exynos5_i2c_driver = {
-- 
2.5.0

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

* [PATCH 2/2] i2c: s3c2410: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
  2016-04-14  1:08 [PATCH 1/2] i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded Axel Lin
@ 2016-04-14  1:08 ` Axel Lin
  2016-04-14 13:27   ` Krzysztof Kozlowski
  2016-04-24 21:18   ` [2/2] " Wolfram Sang
  2016-04-14 13:26 ` [PATCH 1/2] i2c: exynos5: " Krzysztof Kozlowski
  2016-04-24 21:17 ` Wolfram Sang
  2 siblings, 2 replies; 6+ messages in thread
From: Axel Lin @ 2016-04-14  1:08 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Kukjin Kim, Krzysztof Kozlowski, linux-i2c, linux-samsung-soc

Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/i2c/busses/i2c-s3c2410.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c
index 362a6de..1bc7563 100644
--- a/drivers/i2c/busses/i2c-s3c2410.c
+++ b/drivers/i2c/busses/i2c-s3c2410.c
@@ -1316,14 +1316,8 @@ static int s3c24xx_i2c_resume_noirq(struct device *dev)
 
 #ifdef CONFIG_PM
 static const struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = {
-#ifdef CONFIG_PM_SLEEP
-	.suspend_noirq = s3c24xx_i2c_suspend_noirq,
-	.resume_noirq = s3c24xx_i2c_resume_noirq,
-	.freeze_noirq = s3c24xx_i2c_suspend_noirq,
-	.thaw_noirq = s3c24xx_i2c_resume_noirq,
-	.poweroff_noirq = s3c24xx_i2c_suspend_noirq,
-	.restore_noirq = s3c24xx_i2c_resume_noirq,
-#endif
+	SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(s3c24xx_i2c_suspend_noirq,
+				      s3c24xx_i2c_resume_noirq)
 };
 
 #define S3C24XX_DEV_PM_OPS (&s3c24xx_i2c_dev_pm_ops)
-- 
2.5.0

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

* Re: [PATCH 1/2] i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
  2016-04-14  1:08 [PATCH 1/2] i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded Axel Lin
  2016-04-14  1:08 ` [PATCH 2/2] i2c: s3c2410: " Axel Lin
@ 2016-04-14 13:26 ` Krzysztof Kozlowski
  2016-04-24 21:17 ` Wolfram Sang
  2 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2016-04-14 13:26 UTC (permalink / raw)
  To: Axel Lin, Wolfram Sang; +Cc: Kukjin Kim, linux-i2c, linux-samsung-soc

On 04/14/2016 03:08 AM, Axel Lin wrote:
> Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/i2c/busses/i2c-exynos5.c | 10 ++--------
>  1 file changed, 2 insertions(+), 8 deletions(-)

Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Best regards,
Krzysztof

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

* Re: [PATCH 2/2] i2c: s3c2410: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
  2016-04-14  1:08 ` [PATCH 2/2] i2c: s3c2410: " Axel Lin
@ 2016-04-14 13:27   ` Krzysztof Kozlowski
  2016-04-24 21:18   ` [2/2] " Wolfram Sang
  1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2016-04-14 13:27 UTC (permalink / raw)
  To: Axel Lin, Wolfram Sang; +Cc: Kukjin Kim, linux-i2c, linux-samsung-soc

On 04/14/2016 03:08 AM, Axel Lin wrote:
> Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/i2c/busses/i2c-s3c2410.c | 10 ++--------
>  1 file changed, 2 insertions(+), 8 deletions(-)

Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Best regards,
Krzysztof

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

* Re: [PATCH 1/2] i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
  2016-04-14  1:08 [PATCH 1/2] i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded Axel Lin
  2016-04-14  1:08 ` [PATCH 2/2] i2c: s3c2410: " Axel Lin
  2016-04-14 13:26 ` [PATCH 1/2] i2c: exynos5: " Krzysztof Kozlowski
@ 2016-04-24 21:17 ` Wolfram Sang
  2 siblings, 0 replies; 6+ messages in thread
From: Wolfram Sang @ 2016-04-24 21:17 UTC (permalink / raw)
  To: Axel Lin; +Cc: Kukjin Kim, Krzysztof Kozlowski, linux-i2c, linux-samsung-soc

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

On Thu, Apr 14, 2016 at 09:08:04AM +0800, Axel Lin wrote:
> Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [2/2] i2c: s3c2410: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded
  2016-04-14  1:08 ` [PATCH 2/2] i2c: s3c2410: " Axel Lin
  2016-04-14 13:27   ` Krzysztof Kozlowski
@ 2016-04-24 21:18   ` Wolfram Sang
  1 sibling, 0 replies; 6+ messages in thread
From: Wolfram Sang @ 2016-04-24 21:18 UTC (permalink / raw)
  To: Axel Lin; +Cc: Kukjin Kim, Krzysztof Kozlowski, linux-i2c, linux-samsung-soc

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

On Thu, Apr 14, 2016 at 09:08:55AM +0800, Axel Lin wrote:
> Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2016-04-24 21:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14  1:08 [PATCH 1/2] i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded Axel Lin
2016-04-14  1:08 ` [PATCH 2/2] i2c: s3c2410: " Axel Lin
2016-04-14 13:27   ` Krzysztof Kozlowski
2016-04-24 21:18   ` [2/2] " Wolfram Sang
2016-04-14 13:26 ` [PATCH 1/2] i2c: exynos5: " Krzysztof Kozlowski
2016-04-24 21:17 ` Wolfram Sang

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).