linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] spi: bcm63xx-hsspi: Use SIMPLE_DEV_PM_OPS macro
@ 2014-02-26  1:28 Jingoo Han
       [not found] ` <003801cf3292$0b03b4c0$210b1e40$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Jingoo Han @ 2014-02-26  1:28 UTC (permalink / raw)
  To: 'Mark Brown'
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, 'Jingoo Han',
	'Jonas Gorski'

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
---
 drivers/spi/spi-bcm63xx-hsspi.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c
index 3ad3e0c..5a211e9 100644
--- a/drivers/spi/spi-bcm63xx-hsspi.c
+++ b/drivers/spi/spi-bcm63xx-hsspi.c
@@ -454,9 +454,8 @@ static int bcm63xx_hsspi_resume(struct device *dev)
 }
 #endif
 
-static const struct dev_pm_ops bcm63xx_hsspi_pm_ops = {
-	SET_SYSTEM_SLEEP_PM_OPS(bcm63xx_hsspi_suspend, bcm63xx_hsspi_resume)
-};
+static SIMPLE_DEV_PM_OPS(bcm63xx_hsspi_pm_ops, bcm63xx_hsspi_suspend,
+			 bcm63xx_hsspi_resume);
 
 static struct platform_driver bcm63xx_hsspi_driver = {
 	.driver = {
-- 
1.7.10.4


--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2014-03-05  6:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-26  1:28 [PATCH 1/3] spi: bcm63xx-hsspi: Use SIMPLE_DEV_PM_OPS macro Jingoo Han
     [not found] ` <003801cf3292$0b03b4c0$210b1e40$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-02-26  1:30   ` [PATCH 2/3] spi: fsl-dspi: " Jingoo Han
     [not found]     ` <003901cf3292$4cb09a50$e611cef0$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-03-05  6:05       ` Mark Brown
2014-02-26  1:32   ` [PATCH 3/3] spi: sirf: " Jingoo Han
     [not found]     ` <003a01cf3292$a85069d0$f8f13d70$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-02-26  8:32       ` Barry Song
     [not found]         ` <CAGsJ_4whXsMUR_pLjbvraA=pM6fn9b8i_rjSVc6HyM1LQODr1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-26  8:55           ` Jingoo Han
     [not found]             ` <000601cf32d0$746bec50$5d43c4f0$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-02-26  9:05               ` Barry Song
2014-02-27  4:41       ` Mark Brown
2014-03-05  4:53   ` [PATCH 1/3] spi: bcm63xx-hsspi: " Mark Brown

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