Commit 10d8b34a authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Greg Kroah-Hartman

serial: max310x: Driver rework

This patch rework max310x driver.
Major changes have been made:
- Prepare driver to support ICs with more than one UART.
- Prepare driver to support work with I2C-bus.
The patch changes almost every function and can not be divided into parts.
Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b4cdc8f6
...@@ -291,9 +291,9 @@ config SERIAL_MAX3100 ...@@ -291,9 +291,9 @@ config SERIAL_MAX3100
config SERIAL_MAX310X config SERIAL_MAX310X
bool "MAX310X support" bool "MAX310X support"
depends on SPI depends on SPI_MASTER
select SERIAL_CORE select SERIAL_CORE
select REGMAP_SPI if SPI select REGMAP_SPI if SPI_MASTER
default n default n
help help
This selects support for an advanced UART from Maxim (Dallas). This selects support for an advanced UART from Maxim (Dallas).
......
This diff is collapsed.
...@@ -42,9 +42,8 @@ ...@@ -42,9 +42,8 @@
/* MAX310X platform data structure */ /* MAX310X platform data structure */
struct max310x_pdata { struct max310x_pdata {
/* Flags global to driver */ /* Flags global to driver */
const u8 driver_flags:2; const u8 driver_flags;
#define MAX310X_EXT_CLK (0x00000001) /* External clock enable */ #define MAX310X_EXT_CLK (0x00000001) /* External clock enable */
#define MAX310X_AUTOSLEEP (0x00000002) /* Enable AutoSleep mode */
/* Flags global to UART port */ /* Flags global to UART port */
const u8 uart_flags[MAX310X_MAX_UARTS]; const u8 uart_flags[MAX310X_MAX_UARTS];
#define MAX310X_LOOPBACK (0x00000001) /* Loopback mode enable */ #define MAX310X_LOOPBACK (0x00000001) /* Loopback mode enable */
...@@ -60,8 +59,6 @@ struct max310x_pdata { ...@@ -60,8 +59,6 @@ struct max310x_pdata {
void (*init)(void); void (*init)(void);
/* Called before finish */ /* Called before finish */
void (*exit)(void); void (*exit)(void);
/* Suspend callback */
void (*suspend)(int do_suspend);
}; };
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment