]> 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>
Wed, 17 Aug 2011 00:39:41 +0000 (10:39 +1000)
commit2fae4cc811511c645b5fbfc6f127a3f23514b8e6
treea55cfb6127f62582475a3cc1b0934772006bc543
parent72dd88950336cfb7e5df3c02d577c051cd51c22f
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