diff options
| author | 2011-02-09 10:57:04 +0100 | |
|---|---|---|
| committer | 2011-02-17 11:31:58 -0800 | |
| commit | 2780ad42f5fe6739882603c61c8decba6e50eaa2 (patch) | |
| tree | 65d26144ecd8319d5d9243770d034ee4f1ba33ab /drivers/usb/class/cdc-acm.c | |
| parent | tty: serial: altera_uart: Handle pdev->id == -1 in altera_uart_remove (diff) | |
| download | wireguard-linux-2780ad42f5fe6739882603c61c8decba6e50eaa2.tar.xz wireguard-linux-2780ad42f5fe6739882603c61c8decba6e50eaa2.zip | |
tty: serial: altera_uart: Use port->regshift to store bus shift
Use the regshift member of struct uart_port to store the address stride
from platform data. This way we can save one dereference per call of
altera_uart_readl and altera_uart_writel.
This also allows us to use the driver without platform data, which is
needed for device tree support in the Nios2 port.
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
