usb: Rename USB_SERIAL_DEV to USB_SERIAL

Make the type checking macro name consistent with the TYPE_*
constant.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200902224311.1321159-54-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
Eduardo Habkost 2020-09-02 18:43:01 -04:00
parent 5b07883c2b
commit bdd5f27ec8
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ struct USBSerialState {
typedef struct USBSerialState USBSerialState;
#define TYPE_USB_SERIAL "usb-serial-dev"
DECLARE_INSTANCE_CHECKER(USBSerialState, USB_SERIAL_DEV,
DECLARE_INSTANCE_CHECKER(USBSerialState, USB_SERIAL,
TYPE_USB_SERIAL)
enum {
@ -517,7 +517,7 @@ static void usb_serial_event(void *opaque, QEMUChrEvent event)
static void usb_serial_realize(USBDevice *dev, Error **errp)
{
USBSerialState *s = USB_SERIAL_DEV(dev);
USBSerialState *s = USB_SERIAL(dev);
Error *local_err = NULL;
usb_desc_create_serial(dev);