tty/serial: at91: move ATMEL_MAX_UART
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 10 Sep 2015 09:29:03 +0000 (11:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:47:49 +0000 (17:47 +0100)
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>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c
include/linux/platform_data/atmel.h

index 5ca5cf3e9359cf17f9a3aaebbff028ecada3a910..98c84038518e2ee92a3c0a86d078997c2a720ee1 100644 (file)
@@ -111,6 +111,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.
  */
index 527a85c6192443a50ca8846f24fe40d7e726eca9..c4bc90bfebe0b7904c91f3ed27a4c2a8b56bd935 100644 (file)
 #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 */