public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tty/serial: at91: move ATMEL_MAX_UART
@ 2015-09-10  9:29 Alexandre Belloni
  2015-09-18 14:23 ` Nicolas Ferre
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Belloni @ 2015-09-10  9:29 UTC (permalink / raw)
  To: Nicolas Ferre, Greg Kroah-Hartman
  Cc: Jiri Slaby, linux-serial, linux-arm-kernel, linux-kernel,
	Alexandre Belloni

Move ATMEL_MAX_UART from platform_data/atmel.h to atmel_serial.c as this is
the only file using it and it is common practise from tty/serial drivers to
define it directly in the driver file.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 drivers/tty/serial/atmel_serial.c   | 6 ++++++
 include/linux/platform_data/atmel.h | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 5ca5cf3e9359..98c84038518e 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -112,6 +112,12 @@ struct atmel_uart_char {
 #define ATMEL_SERIAL_RINGSIZE 1024
 
 /*
+ * at91: 6 USARTs and one DBGU port (SAM9260)
+ * avr32: 4
+ */
+#define ATMEL_MAX_UART		7
+
+/*
  * We wrap our port structure around the generic uart_port.
  */
 struct atmel_uart_port {
diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h
index 527a85c61924..c4bc90bfebe0 100644
--- a/include/linux/platform_data/atmel.h
+++ b/include/linux/platform_data/atmel.h
@@ -19,12 +19,6 @@
 #include <linux/serial.h>
 #include <linux/platform_data/macb.h>
 
-/*
- * at91: 6 USARTs and one DBGU port (SAM9260)
- * avr32: 4
- */
-#define ATMEL_MAX_UART	7
-
  /* USB Device */
 struct at91_udc_data {
 	int	vbus_pin;		/* high == host powering us */
-- 
2.1.4


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

* Re: [PATCH] tty/serial: at91: move ATMEL_MAX_UART
  2015-09-10  9:29 [PATCH] tty/serial: at91: move ATMEL_MAX_UART Alexandre Belloni
@ 2015-09-18 14:23 ` Nicolas Ferre
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Ferre @ 2015-09-18 14:23 UTC (permalink / raw)
  To: Alexandre Belloni, Greg Kroah-Hartman
  Cc: Jiri Slaby, linux-serial, linux-arm-kernel, linux-kernel

Le 10/09/2015 11:29, Alexandre Belloni a écrit :
> Move ATMEL_MAX_UART from platform_data/atmel.h to atmel_serial.c as this is
> the only file using it and it is common practise from tty/serial drivers to
> define it directly in the driver file.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

Okay:
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

> ---
>  drivers/tty/serial/atmel_serial.c   | 6 ++++++
>  include/linux/platform_data/atmel.h | 6 ------
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
> index 5ca5cf3e9359..98c84038518e 100644
> --- a/drivers/tty/serial/atmel_serial.c
> +++ b/drivers/tty/serial/atmel_serial.c
> @@ -112,6 +112,12 @@ struct atmel_uart_char {
>  #define ATMEL_SERIAL_RINGSIZE 1024
>  
>  /*
> + * at91: 6 USARTs and one DBGU port (SAM9260)
> + * avr32: 4
> + */
> +#define ATMEL_MAX_UART		7
> +
> +/*
>   * We wrap our port structure around the generic uart_port.
>   */
>  struct atmel_uart_port {
> diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h
> index 527a85c61924..c4bc90bfebe0 100644
> --- a/include/linux/platform_data/atmel.h
> +++ b/include/linux/platform_data/atmel.h
> @@ -19,12 +19,6 @@
>  #include <linux/serial.h>
>  #include <linux/platform_data/macb.h>
>  
> -/*
> - * at91: 6 USARTs and one DBGU port (SAM9260)
> - * avr32: 4
> - */
> -#define ATMEL_MAX_UART	7
> -
>   /* USB Device */
>  struct at91_udc_data {
>  	int	vbus_pin;		/* high == host powering us */
> 


-- 
Nicolas Ferre

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

end of thread, other threads:[~2015-09-18 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10  9:29 [PATCH] tty/serial: at91: move ATMEL_MAX_UART Alexandre Belloni
2015-09-18 14:23 ` Nicolas Ferre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox