diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-02-10 13:18:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-13 12:34:48 -0500 |
commit | 5f529049cb044ed2cbea2599b246985912c0770d (patch) | |
tree | f32887e6d296990c9d648bc9a1b4502a8396b866 /drivers/tty/serial/max310x.c | |
parent | 55367c620aed6bc27a82bb1763366931d7f2ee66 (diff) |
serial: max310x: Driver cleanup
This patch removes some unused definitions from driver code and
sort #includes alphabetically.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/max310x.c')
-rw-r--r-- | drivers/tty/serial/max310x.c | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index 090f25d4a019..e27385438472 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c | |||
@@ -13,17 +13,17 @@ | |||
13 | * (at your option) any later version. | 13 | * (at your option) any later version. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/module.h> | ||
17 | #include <linux/delay.h> | ||
18 | #include <linux/device.h> | ||
19 | #include <linux/bitops.h> | 16 | #include <linux/bitops.h> |
20 | #include <linux/clk.h> | 17 | #include <linux/clk.h> |
18 | #include <linux/delay.h> | ||
19 | #include <linux/device.h> | ||
20 | #include <linux/gpio.h> | ||
21 | #include <linux/module.h> | ||
22 | #include <linux/regmap.h> | ||
21 | #include <linux/serial_core.h> | 23 | #include <linux/serial_core.h> |
22 | #include <linux/serial.h> | 24 | #include <linux/serial.h> |
23 | #include <linux/tty.h> | 25 | #include <linux/tty.h> |
24 | #include <linux/tty_flip.h> | 26 | #include <linux/tty_flip.h> |
25 | #include <linux/regmap.h> | ||
26 | #include <linux/gpio.h> | ||
27 | #include <linux/spi/spi.h> | 27 | #include <linux/spi/spi.h> |
28 | 28 | ||
29 | #define MAX310X_NAME "max310x" | 29 | #define MAX310X_NAME "max310x" |
@@ -160,10 +160,6 @@ | |||
160 | /* IRDA register bits */ | 160 | /* IRDA register bits */ |
161 | #define MAX310X_IRDA_IRDAEN_BIT (1 << 0) /* IRDA mode enable */ | 161 | #define MAX310X_IRDA_IRDAEN_BIT (1 << 0) /* IRDA mode enable */ |
162 | #define MAX310X_IRDA_SIR_BIT (1 << 1) /* SIR mode enable */ | 162 | #define MAX310X_IRDA_SIR_BIT (1 << 1) /* SIR mode enable */ |
163 | #define MAX310X_IRDA_SHORTIR_BIT (1 << 2) /* Short SIR mode enable */ | ||
164 | #define MAX310X_IRDA_MIR_BIT (1 << 3) /* MIR mode enable */ | ||
165 | #define MAX310X_IRDA_RXINV_BIT (1 << 4) /* RX logic inversion enable */ | ||
166 | #define MAX310X_IRDA_TXINV_BIT (1 << 5) /* TX logic inversion enable */ | ||
167 | 163 | ||
168 | /* Flow control trigger level register masks */ | 164 | /* Flow control trigger level register masks */ |
169 | #define MAX310X_FLOWLVL_HALT_MASK (0x000f) /* Flow control halt level */ | 165 | #define MAX310X_FLOWLVL_HALT_MASK (0x000f) /* Flow control halt level */ |
@@ -219,26 +215,6 @@ | |||
219 | * XOFF2 | 215 | * XOFF2 |
220 | */ | 216 | */ |
221 | 217 | ||
222 | /* GPIO configuration register bits */ | ||
223 | #define MAX310X_GPIOCFG_GP0OUT_BIT (1 << 0) /* GPIO 0 output enable */ | ||
224 | #define MAX310X_GPIOCFG_GP1OUT_BIT (1 << 1) /* GPIO 1 output enable */ | ||
225 | #define MAX310X_GPIOCFG_GP2OUT_BIT (1 << 2) /* GPIO 2 output enable */ | ||
226 | #define MAX310X_GPIOCFG_GP3OUT_BIT (1 << 3) /* GPIO 3 output enable */ | ||
227 | #define MAX310X_GPIOCFG_GP0OD_BIT (1 << 4) /* GPIO 0 open-drain enable */ | ||
228 | #define MAX310X_GPIOCFG_GP1OD_BIT (1 << 5) /* GPIO 1 open-drain enable */ | ||
229 | #define MAX310X_GPIOCFG_GP2OD_BIT (1 << 6) /* GPIO 2 open-drain enable */ | ||
230 | #define MAX310X_GPIOCFG_GP3OD_BIT (1 << 7) /* GPIO 3 open-drain enable */ | ||
231 | |||
232 | /* GPIO DATA register bits */ | ||
233 | #define MAX310X_GPIODATA_GP0OUT_BIT (1 << 0) /* GPIO 0 output value */ | ||
234 | #define MAX310X_GPIODATA_GP1OUT_BIT (1 << 1) /* GPIO 1 output value */ | ||
235 | #define MAX310X_GPIODATA_GP2OUT_BIT (1 << 2) /* GPIO 2 output value */ | ||
236 | #define MAX310X_GPIODATA_GP3OUT_BIT (1 << 3) /* GPIO 3 output value */ | ||
237 | #define MAX310X_GPIODATA_GP0IN_BIT (1 << 4) /* GPIO 0 input value */ | ||
238 | #define MAX310X_GPIODATA_GP1IN_BIT (1 << 5) /* GPIO 1 input value */ | ||
239 | #define MAX310X_GPIODATA_GP2IN_BIT (1 << 6) /* GPIO 2 input value */ | ||
240 | #define MAX310X_GPIODATA_GP3IN_BIT (1 << 7) /* GPIO 3 input value */ | ||
241 | |||
242 | /* PLL configuration register masks */ | 218 | /* PLL configuration register masks */ |
243 | #define MAX310X_PLLCFG_PREDIV_MASK (0x3f) /* PLL predivision value */ | 219 | #define MAX310X_PLLCFG_PREDIV_MASK (0x3f) /* PLL predivision value */ |
244 | #define MAX310X_PLLCFG_PLLFACTOR_MASK (0xc0) /* PLL multiplication factor */ | 220 | #define MAX310X_PLLCFG_PLLFACTOR_MASK (0xc0) /* PLL multiplication factor */ |