]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio-console: Use virtio_config_val() for retrieving config
authorSasha Levin <levinsasha928@gmail.com>
Sun, 14 Aug 2011 14:52:31 +0000 (17:52 +0300)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 1 Nov 2011 23:04:22 +0000 (10:04 +1100)
commit177670057982a6509cc911790cd31d7d2bc8bdf9
treef86d698c3a74e75481f85eefa93f0b008f7a1e81
parent839d8810747bbf39e0a5a7f223b67bffa7945f8d
virtio-console: Use virtio_config_val() for retrieving config

This patch modifies virtio-console to use virtio_config_val() instead
of a 'if(virtio_has_feature()) vdev->config->get()' construct to retrieve
optional values from the config space.

Cc: Amit Shah <amit.shah@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: virtualization@lists.linux-foundation.org
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c