serial: at91: use function pointer to choose pdc or pio
authorElen Song <elen.song@atmel.com>
Mon, 22 Jul 2013 08:30:25 +0000 (16:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jul 2013 20:03:29 +0000 (13:03 -0700)
commita930e52875e96709cc01e4babcb8351687c5a58e
tree275167744381f78355db7875547bbe6dcf1b1d08
parent64e22ebe49780e2454c8788c5af9f1e0e500e1a2
serial: at91: use function pointer to choose pdc or pio

use function pointer can avoid define atmel_use_pdc_tx/rx everywhere.
(*prepare_rx/tx)() is in setup transfer stage.
(*schedule_rx/tx)() is in tasklet schedule stage.
(*release_rx/tx)() is used when shutdown the transfer.

Signed-off-by: Elen Song <elen.song@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c