Patchwork [18/20] ccid: add qdev description strings

login
register
mail settings
Submitter Alon Levy
Date Feb. 2, 2011, 8:28 p.m.
Message ID <1296678500-19497-19-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/81538/
State New
Headers show

Comments

Alon Levy - Feb. 2, 2011, 8:28 p.m.
Signed-off-by: Alon Levy <alevy@redhat.com>
---
 hw/ccid-card-emulated.c |    1 +
 hw/ccid-card-passthru.c |    1 +
 hw/usb-ccid.c           |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/ccid-card-emulated.c b/hw/ccid-card-emulated.c
index 09ce770..2e25daa 100644
--- a/hw/ccid-card-emulated.c
+++ b/hw/ccid-card-emulated.c
@@ -525,6 +525,7 @@  EnumTable backend_enum_table[] = {
 
 static CCIDCardInfo emulated_card_info = {
     .qdev.name = EMULATED_DEV_NAME,
+    .qdev.desc = "emulated smartcard",
     .qdev.size = sizeof(EmulatedState),
     .initfn = emulated_initfn,
     .exitfn = emulated_exitfn,
diff --git a/hw/ccid-card-passthru.c b/hw/ccid-card-passthru.c
index f3f3da9..f290bea 100644
--- a/hw/ccid-card-passthru.c
+++ b/hw/ccid-card-passthru.c
@@ -306,6 +306,7 @@  static VMStateDescription passthru_vmstate = {
 
 static CCIDCardInfo passthru_card_info = {
     .qdev.name = PASSTHRU_DEV_NAME,
+    .qdev.desc = "passthrough smartcard",
     .qdev.size = sizeof(PassthruState),
     .qdev.vmsd = &passthru_vmstate,
     .initfn = passthru_initfn,
diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c
index 09e39ac..27a7103 100644
--- a/hw/usb-ccid.c
+++ b/hw/usb-ccid.c
@@ -1330,6 +1330,7 @@  static VMStateDescription ccid_vmstate = {
 static struct USBDeviceInfo ccid_info = {
     .product_desc   = "QEMU USB CCID",
     .qdev.name      = CCID_DEV_NAME,
+    .qdev.desc      = "CCID Rev 1.1 smartcard reader",
     .qdev.size      = sizeof(USBCCIDState),
     .init           = ccid_initfn,
     .handle_packet  = usb_generic_handle_packet,