virtio: console: ensure add_inbuf can work for multiple ports as well
authorAmit Shah <amit.shah@redhat.com>
Mon, 18 Jan 2010 13:45:02 +0000 (19:15 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:37 +0000 (14:22 +1030)
commite27b519807e04d950802cb89f7b22933d8d2f837
tree4d79ffc7fb76b35d74a9198553ee7972c52c3ec7
parentfdb9a054554e1e435e927c9a47a999f026abd408
virtio: console: ensure add_inbuf can work for multiple ports as well

add_inbuf() assumed one port and one inbuf per port. Remove that
assumption.

Also move the function so that put_chars and get_chars are together.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c