virtio: console: Separate out console-specific data into a separate struct
authorAmit Shah <amit.shah@redhat.com>
Mon, 18 Jan 2010 13:45:09 +0000 (19:15 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:47 +0000 (14:22 +1030)
commit4f23c573c0dbebfd193cfb90b003d67929c58b31
treee7ba84a7ecbff8f8d837e47375de17ef82210084
parentcb06e3676b22013e9b759627e41656ddb07dee6d
virtio: console: Separate out console-specific data into a separate struct

Move out console-specific stuff into a separate struct from 'struct
port' as we need to maintain two lists: one for all the ports (which
includes consoles) and one only for consoles since the hvc callbacks
only give us the vtermno.

This makes console handling cleaner.

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