All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>,
	linux-serial@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tty/serial: at91: move ATMEL_MAX_UART
Date: Fri, 18 Sep 2015 16:23:47 +0200	[thread overview]
Message-ID: <55FC1E73.8020101@atmel.com> (raw)
In-Reply-To: <1441877343-20248-1-git-send-email-alexandre.belloni@free-electrons.com>

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

WARNING: multiple messages have this Message-ID (diff)
From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] tty/serial: at91: move ATMEL_MAX_UART
Date: Fri, 18 Sep 2015 16:23:47 +0200	[thread overview]
Message-ID: <55FC1E73.8020101@atmel.com> (raw)
In-Reply-To: <1441877343-20248-1-git-send-email-alexandre.belloni@free-electrons.com>

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

WARNING: multiple messages have this Message-ID (diff)
From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>, <linux-serial@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] tty/serial: at91: move ATMEL_MAX_UART
Date: Fri, 18 Sep 2015 16:23:47 +0200	[thread overview]
Message-ID: <55FC1E73.8020101@atmel.com> (raw)
In-Reply-To: <1441877343-20248-1-git-send-email-alexandre.belloni@free-electrons.com>

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

  reply	other threads:[~2015-09-18 14:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10  9:29 [PATCH] tty/serial: at91: move ATMEL_MAX_UART Alexandre Belloni
2015-09-10  9:29 ` Alexandre Belloni
2015-09-18 14:23 ` Nicolas Ferre [this message]
2015-09-18 14:23   ` Nicolas Ferre
2015-09-18 14:23   ` Nicolas Ferre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55FC1E73.8020101@atmel.com \
    --to=nicolas.ferre@atmel.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.