summary refs log tree commit diff stats
path: root/hw/usb/canokey.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb/canokey.c')
-rw-r--r--hw/usb/canokey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/canokey.c b/hw/usb/canokey.c
index e2d66179e0..cbefbb5daf 100644
--- a/hw/usb/canokey.c
+++ b/hw/usb/canokey.c
@@ -300,7 +300,7 @@ static const Property canokey_properties[] = {
     DEFINE_PROP_STRING("file", CanoKeyState, file),
 };
 
-static void canokey_class_init(ObjectClass *klass, void *data)
+static void canokey_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     USBDeviceClass *uc = USB_DEVICE_CLASS(klass);