All of lore.kernel.org
 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

* [PATCH 2/3] spi: fsl-dspi: Use SIMPLE_DEV_PM_OPS macro
       [not found] ` <003801cf3292$0b03b4c0$210b1e40$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
@ 2014-02-26  1:30   ` Jingoo Han
       [not found]     ` <003901cf3292$4cb09a50$e611cef0$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
  2014-02-26  1:32   ` [PATCH 3/3] spi: sirf: " Jingoo Han
  2014-03-05  4:53   ` [PATCH 1/3] spi: bcm63xx-hsspi: " Mark Brown
  2 siblings, 1 reply; 9+ messages in thread
From: Jingoo Han @ 2014-02-26  1:30 UTC (permalink / raw)
  To: 'Mark Brown'
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, 'Jingoo Han',
	'Chao Fu', 'Xiubo Li'

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-fsl-dspi.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
index 42ede0d..7f0dddb 100644
--- a/drivers/spi/spi-fsl-dspi.c
+++ b/drivers/spi/spi-fsl-dspi.c
@@ -437,9 +437,7 @@ static int dspi_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-static const struct dev_pm_ops dspi_pm = {
-	SET_SYSTEM_SLEEP_PM_OPS(dspi_suspend, dspi_resume)
-};
+static SIMPLE_DEV_PM_OPS(dspi_pm, dspi_suspend, dspi_resume);
 
 static struct regmap_config dspi_regmap_config = {
 	.reg_bits = 32,
-- 
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

* [PATCH 3/3] spi: sirf: Use SIMPLE_DEV_PM_OPS macro
       [not found] ` <003801cf3292$0b03b4c0$210b1e40$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
  2014-02-26  1:30   ` [PATCH 2/3] spi: fsl-dspi: " Jingoo Han
@ 2014-02-26  1:32   ` Jingoo Han
       [not found]     ` <003a01cf3292$a85069d0$f8f13d70$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
  2014-03-05  4:53   ` [PATCH 1/3] spi: bcm63xx-hsspi: " Mark Brown
  2 siblings, 1 reply; 9+ messages in thread
From: Jingoo Han @ 2014-02-26  1:32 UTC (permalink / raw)
  To: 'Mark Brown'
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, 'Jingoo Han',
	'Barry Song', 'Qipan Li', 'Zhiwu Song'

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-sirf.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c
index 5210b94..dc962a1 100644
--- a/drivers/spi/spi-sirf.c
+++ b/drivers/spi/spi-sirf.c
@@ -718,9 +718,8 @@ static int spi_sirfsoc_resume(struct device *dev)
 }
 #endif
 
-static const struct dev_pm_ops spi_sirfsoc_pm_ops = {
-	SET_SYSTEM_SLEEP_PM_OPS(spi_sirfsoc_suspend, spi_sirfsoc_resume)
-};
+static SIMPLE_DEV_PM_OPS(spi_sirfsoc_pm_ops, spi_sirfsoc_suspend,
+			 spi_sirfsoc_resume);
 
 static const struct of_device_id spi_sirfsoc_of_match[] = {
 	{ .compatible = "sirf,prima2-spi", },
-- 
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

* Re: [PATCH 3/3] spi: sirf: Use SIMPLE_DEV_PM_OPS macro
       [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-27  4:41       ` Mark Brown
  1 sibling, 1 reply; 9+ messages in thread
From: Barry Song @ 2014-02-26  8:32 UTC (permalink / raw)
  To: Jingoo Han
  Cc: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA, Qipan Li, Zhiwu Song

2014-02-26 9:32 GMT+08:00 Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
>
> Signed-off-by: Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>

thanks, but this has been done and merged.

> ---
>  drivers/spi/spi-sirf.c |    5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c
> index 5210b94..dc962a1 100644
> --- a/drivers/spi/spi-sirf.c
> +++ b/drivers/spi/spi-sirf.c
> @@ -718,9 +718,8 @@ static int spi_sirfsoc_resume(struct device *dev)
>  }
>  #endif
>
> -static const struct dev_pm_ops spi_sirfsoc_pm_ops = {
> -       SET_SYSTEM_SLEEP_PM_OPS(spi_sirfsoc_suspend, spi_sirfsoc_resume)
> -};
> +static SIMPLE_DEV_PM_OPS(spi_sirfsoc_pm_ops, spi_sirfsoc_suspend,
> +                        spi_sirfsoc_resume);
>
>  static const struct of_device_id spi_sirfsoc_of_match[] = {
>         { .compatible = "sirf,prima2-spi", },
> --
> 1.7.10.4
>
>
-barry
--
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	[flat|nested] 9+ messages in thread

* Re: [PATCH 3/3] spi: sirf: Use SIMPLE_DEV_PM_OPS macro
       [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>
  0 siblings, 1 reply; 9+ messages in thread
From: Jingoo Han @ 2014-02-26  8:55 UTC (permalink / raw)
  To: 'Barry Song'
  Cc: 'Mark Brown',
	linux-spi-u79uwXL29TY76Z2rM5mHXA, 'Qipan Li',
	'Zhiwu Song', 'Jingoo Han'

On Wednesday, February 26, 2014 5:32 PM, Barry Song wrote:
> 2014-02-26 9:32 GMT+08:00 Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>:
> > Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
> >
> > Signed-off-by: Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> 
> thanks, but this has been done and merged.

Thank you for your comment. However I have a question. :-)

My patch replaces 'SET_SYSTEM_SLEEP_PM_OPS' with 'SIMPLE_DEV_PM_OPS'.
However, I cannot find the same patch in SPI mailing-list.
Would you let me know how to find the same patch that was submitted
earlier?

Best regards,
Jingoo Han

> 
> > ---
> >  drivers/spi/spi-sirf.c |    5 ++---
> >  1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c
> > index 5210b94..dc962a1 100644
> > --- a/drivers/spi/spi-sirf.c
> > +++ b/drivers/spi/spi-sirf.c
> > @@ -718,9 +718,8 @@ static int spi_sirfsoc_resume(struct device *dev)
> >  }
> >  #endif
> >
> > -static const struct dev_pm_ops spi_sirfsoc_pm_ops = {
> > -       SET_SYSTEM_SLEEP_PM_OPS(spi_sirfsoc_suspend, spi_sirfsoc_resume)
> > -};
> > +static SIMPLE_DEV_PM_OPS(spi_sirfsoc_pm_ops, spi_sirfsoc_suspend,
> > +                        spi_sirfsoc_resume);
> >
> >  static const struct of_device_id spi_sirfsoc_of_match[] = {
> >         { .compatible = "sirf,prima2-spi", },
> > --
> > 1.7.10.4
> >
> >
> -barry

--
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	[flat|nested] 9+ messages in thread

* Re: [PATCH 3/3] spi: sirf: Use SIMPLE_DEV_PM_OPS macro
       [not found]             ` <000601cf32d0$746bec50$5d43c4f0$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
@ 2014-02-26  9:05               ` Barry Song
  0 siblings, 0 replies; 9+ messages in thread
From: Barry Song @ 2014-02-26  9:05 UTC (permalink / raw)
  To: Jingoo Han
  Cc: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA, Qipan Li,
	Zhiwu Song, DL-SHA-WorkGroupLinux

2014-02-26 16:55 GMT+08:00 Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>:
> On Wednesday, February 26, 2014 5:32 PM, Barry Song wrote:
>> 2014-02-26 9:32 GMT+08:00 Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>:
>> > Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
>> >
>> > Signed-off-by: Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
>>
>> thanks, but this has been done and merged.
>
> Thank you for your comment. However I have a question. :-)
>
> My patch replaces 'SET_SYSTEM_SLEEP_PM_OPS' with 'SIMPLE_DEV_PM_OPS'.
> However, I cannot find the same patch in SPI mailing-list.
> Would you let me know how to find the same patch that was submitted
> earlier?

sorry, i misunderstood your patch.

Acked-by: Barry Song <Baohua.Song-kQvG35nSl+M@public.gmane.org>

thanks a lot!

>
> Best regards,
> Jingoo Han
>
>>
>> > ---
>> >  drivers/spi/spi-sirf.c |    5 ++---
>> >  1 file changed, 2 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c
>> > index 5210b94..dc962a1 100644
>> > --- a/drivers/spi/spi-sirf.c
>> > +++ b/drivers/spi/spi-sirf.c
>> > @@ -718,9 +718,8 @@ static int spi_sirfsoc_resume(struct device *dev)
>> >  }
>> >  #endif
>> >
>> > -static const struct dev_pm_ops spi_sirfsoc_pm_ops = {
>> > -       SET_SYSTEM_SLEEP_PM_OPS(spi_sirfsoc_suspend, spi_sirfsoc_resume)
>> > -};
>> > +static SIMPLE_DEV_PM_OPS(spi_sirfsoc_pm_ops, spi_sirfsoc_suspend,
>> > +                        spi_sirfsoc_resume);
>> >
>> >  static const struct of_device_id spi_sirfsoc_of_match[] = {
>> >         { .compatible = "sirf,prima2-spi", },
>> > --
>> > 1.7.10.4
>> >
>> >
>> -barry


-barry
--
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	[flat|nested] 9+ messages in thread

* Re: [PATCH 3/3] spi: sirf: Use SIMPLE_DEV_PM_OPS macro
       [not found]     ` <003a01cf3292$a85069d0$f8f13d70$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
  2014-02-26  8:32       ` Barry Song
@ 2014-02-27  4:41       ` Mark Brown
  1 sibling, 0 replies; 9+ messages in thread
From: Mark Brown @ 2014-02-27  4:41 UTC (permalink / raw)
  To: Jingoo Han
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, 'Barry Song',
	'Qipan Li', 'Zhiwu Song'

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

On Wed, Feb 26, 2014 at 10:32:48AM +0900, Jingoo Han wrote:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH 1/3] spi: bcm63xx-hsspi: Use SIMPLE_DEV_PM_OPS macro
       [not found] ` <003801cf3292$0b03b4c0$210b1e40$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
  2014-02-26  1:30   ` [PATCH 2/3] spi: fsl-dspi: " Jingoo Han
  2014-02-26  1:32   ` [PATCH 3/3] spi: sirf: " Jingoo Han
@ 2014-03-05  4:53   ` Mark Brown
  2 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2014-03-05  4:53 UTC (permalink / raw)
  To: Jingoo Han; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, 'Jonas Gorski'

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

On Wed, Feb 26, 2014 at 10:28:24AM +0900, Jingoo Han wrote:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH 2/3] spi: fsl-dspi: Use SIMPLE_DEV_PM_OPS macro
       [not found]     ` <003901cf3292$4cb09a50$e611cef0$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
@ 2014-03-05  6:05       ` Mark Brown
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2014-03-05  6:05 UTC (permalink / raw)
  To: Jingoo Han
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, 'Chao Fu', 'Xiubo Li'

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

On Wed, Feb 26, 2014 at 10:30:14AM +0900, Jingoo Han wrote:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[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 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.