linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] serial: st-asc: Use SIMPLE_DEV_PM_OPS macro
@ 2014-02-27 11:43 Jingoo Han
  2014-02-27 11:45 ` [PATCH 2/3] serial: sirf: " Jingoo Han
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jingoo Han @ 2014-02-27 11:43 UTC (permalink / raw)
  To: 'Greg Kroah-Hartman'
  Cc: linux-serial, 'Jingoo Han', 'Srinivas Kandagatla'

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/tty/serial/st-asc.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c
index 21e6e84..93e27b9 100644
--- a/drivers/tty/serial/st-asc.c
+++ b/drivers/tty/serial/st-asc.c
@@ -883,9 +883,8 @@ static struct uart_driver asc_uart_driver = {
 	.cons		= ASC_SERIAL_CONSOLE,
 };
 
-static const struct dev_pm_ops asc_serial_pm_ops = {
-	SET_SYSTEM_SLEEP_PM_OPS(asc_serial_suspend, asc_serial_resume)
-};
+static SIMPLE_DEV_PM_OPS(asc_serial_pm_ops, asc_serial_suspend,
+			 asc_serial_resume);
 
 static struct platform_driver asc_serial_driver = {
 	.probe		= asc_serial_probe,
-- 
1.7.10.4



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

* [PATCH 2/3] serial: sirf: Use SIMPLE_DEV_PM_OPS macro
  2014-02-27 11:43 [PATCH 1/3] serial: st-asc: Use SIMPLE_DEV_PM_OPS macro Jingoo Han
@ 2014-02-27 11:45 ` Jingoo Han
  2014-02-27 12:04   ` Barry Song
  2014-02-27 11:45 ` [PATCH 3/3] serial: tegra: " Jingoo Han
  2014-03-04  9:13 ` [PATCH 1/3] serial: st-asc: " srinivas kandagatla
  2 siblings, 1 reply; 6+ messages in thread
From: Jingoo Han @ 2014-02-27 11:45 UTC (permalink / raw)
  To: 'Greg Kroah-Hartman'
  Cc: linux-serial, 'Jingoo Han', 'Qipan Li',
	'Barry Song'

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/tty/serial/sirfsoc_uart.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c
index 68b0fd4..da96502 100644
--- a/drivers/tty/serial/sirfsoc_uart.c
+++ b/drivers/tty/serial/sirfsoc_uart.c
@@ -1480,9 +1480,8 @@ static int sirfsoc_uart_resume(struct device *pdev)
 }
 #endif
 
-static const struct dev_pm_ops sirfsoc_uart_pm_ops = {
-	SET_SYSTEM_SLEEP_PM_OPS(sirfsoc_uart_suspend, sirfsoc_uart_resume)
-};
+static SIMPLE_DEV_PM_OPS(sirfsoc_uart_pm_ops, sirfsoc_uart_suspend,
+			 sirfsoc_uart_resume);
 
 static struct platform_driver sirfsoc_uart_driver = {
 	.probe		= sirfsoc_uart_probe,
-- 
1.7.10.4



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

* [PATCH 3/3] serial: tegra: Use SIMPLE_DEV_PM_OPS macro
  2014-02-27 11:43 [PATCH 1/3] serial: st-asc: Use SIMPLE_DEV_PM_OPS macro Jingoo Han
  2014-02-27 11:45 ` [PATCH 2/3] serial: sirf: " Jingoo Han
@ 2014-02-27 11:45 ` Jingoo Han
  2014-02-27 16:44   ` Stephen Warren
  2014-03-04  9:13 ` [PATCH 1/3] serial: st-asc: " srinivas kandagatla
  2 siblings, 1 reply; 6+ messages in thread
From: Jingoo Han @ 2014-02-27 11:45 UTC (permalink / raw)
  To: 'Greg Kroah-Hartman'
  Cc: linux-serial, 'Jingoo Han', 'Stephen Warren',
	'Laxman Dewangan'

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/tty/serial/serial-tegra.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c
index d5c2a28..d37e96b 100644
--- a/drivers/tty/serial/serial-tegra.c
+++ b/drivers/tty/serial/serial-tegra.c
@@ -1352,9 +1352,8 @@ static int tegra_uart_resume(struct device *dev)
 }
 #endif
 
-static const struct dev_pm_ops tegra_uart_pm_ops = {
-	SET_SYSTEM_SLEEP_PM_OPS(tegra_uart_suspend, tegra_uart_resume)
-};
+static SIMPLE_DEV_PM_OPS(tegra_uart_pm_ops, tegra_uart_suspend,
+			 tegra_uart_resume);
 
 static struct platform_driver tegra_uart_platform_driver = {
 	.probe		= tegra_uart_probe,
-- 
1.7.10.4



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

* Re: [PATCH 2/3] serial: sirf: Use SIMPLE_DEV_PM_OPS macro
  2014-02-27 11:45 ` [PATCH 2/3] serial: sirf: " Jingoo Han
@ 2014-02-27 12:04   ` Barry Song
  0 siblings, 0 replies; 6+ messages in thread
From: Barry Song @ 2014-02-27 12:04 UTC (permalink / raw)
  To: Jingoo Han
  Cc: Greg Kroah-Hartman, linux-serial@vger.kernel.org, Qipan Li,
	Barry Song, DL-SHA-WorkGroupLinux

2014-02-27 19:45 GMT+08:00 Jingoo Han <jg1.han@samsung.com>:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---

Acked-by: Barry Song <Baohua.Song@csr.com>

>  drivers/tty/serial/sirfsoc_uart.c |    5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c
> index 68b0fd4..da96502 100644
> --- a/drivers/tty/serial/sirfsoc_uart.c
> +++ b/drivers/tty/serial/sirfsoc_uart.c
> @@ -1480,9 +1480,8 @@ static int sirfsoc_uart_resume(struct device *pdev)
>  }
>  #endif
>
> -static const struct dev_pm_ops sirfsoc_uart_pm_ops = {
> -       SET_SYSTEM_SLEEP_PM_OPS(sirfsoc_uart_suspend, sirfsoc_uart_resume)
> -};
> +static SIMPLE_DEV_PM_OPS(sirfsoc_uart_pm_ops, sirfsoc_uart_suspend,
> +                        sirfsoc_uart_resume);
>
>  static struct platform_driver sirfsoc_uart_driver = {
>         .probe          = sirfsoc_uart_probe,
> --
> 1.7.10.4

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

* RE: [PATCH 3/3] serial: tegra: Use SIMPLE_DEV_PM_OPS macro
  2014-02-27 11:45 ` [PATCH 3/3] serial: tegra: " Jingoo Han
@ 2014-02-27 16:44   ` Stephen Warren
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Warren @ 2014-02-27 16:44 UTC (permalink / raw)
  To: Jingoo Han, 'Greg Kroah-Hartman'
  Cc: linux-serial@vger.kernel.org, Laxman Dewangan

Jingoo Han wrote at Thursday, February 27, 2014 4:46 AM:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Acked-by: Stephen Warren <swarren@nvidia.com>

--
nvpublic


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

* Re: [PATCH 1/3] serial: st-asc: Use SIMPLE_DEV_PM_OPS macro
  2014-02-27 11:43 [PATCH 1/3] serial: st-asc: Use SIMPLE_DEV_PM_OPS macro Jingoo Han
  2014-02-27 11:45 ` [PATCH 2/3] serial: sirf: " Jingoo Han
  2014-02-27 11:45 ` [PATCH 3/3] serial: tegra: " Jingoo Han
@ 2014-03-04  9:13 ` srinivas kandagatla
  2 siblings, 0 replies; 6+ messages in thread
From: srinivas kandagatla @ 2014-03-04  9:13 UTC (permalink / raw)
  To: Jingoo Han, 'Greg Kroah-Hartman'; +Cc: linux-serial

Thanks for the patch, It looks ok to me.

Acked-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>

On 27/02/14 11:43, Jingoo Han wrote:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
>  drivers/tty/serial/st-asc.c |    5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c
> index 21e6e84..93e27b9 100644
> --- a/drivers/tty/serial/st-asc.c
> +++ b/drivers/tty/serial/st-asc.c
> @@ -883,9 +883,8 @@ static struct uart_driver asc_uart_driver = {
>  	.cons		= ASC_SERIAL_CONSOLE,
>  };
>  
> -static const struct dev_pm_ops asc_serial_pm_ops = {
> -	SET_SYSTEM_SLEEP_PM_OPS(asc_serial_suspend, asc_serial_resume)
> -};
> +static SIMPLE_DEV_PM_OPS(asc_serial_pm_ops, asc_serial_suspend,
> +			 asc_serial_resume);
>  
>  static struct platform_driver asc_serial_driver = {
>  	.probe		= asc_serial_probe,
> 


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

end of thread, other threads:[~2014-03-04  9:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27 11:43 [PATCH 1/3] serial: st-asc: Use SIMPLE_DEV_PM_OPS macro Jingoo Han
2014-02-27 11:45 ` [PATCH 2/3] serial: sirf: " Jingoo Han
2014-02-27 12:04   ` Barry Song
2014-02-27 11:45 ` [PATCH 3/3] serial: tegra: " Jingoo Han
2014-02-27 16:44   ` Stephen Warren
2014-03-04  9:13 ` [PATCH 1/3] serial: st-asc: " srinivas kandagatla

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