tusb6010: Rename TUSB to TUSB6010

Make type checking function name consistent with the TYPE_TUSB6010
constant and QOM type name ("tusb6010").

Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Suggested-by: "Daniel P. Berrangé" <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200903180128.1523959-9-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
Eduardo Habkost 2020-09-03 14:01:28 -04:00
parent b327066931
commit d4db94629a

View File

@ -32,7 +32,7 @@
#define TYPE_TUSB6010 "tusb6010" #define TYPE_TUSB6010 "tusb6010"
typedef struct TUSBState TUSBState; typedef struct TUSBState TUSBState;
DECLARE_INSTANCE_CHECKER(TUSBState, TUSB, DECLARE_INSTANCE_CHECKER(TUSBState, TUSB6010,
TYPE_TUSB6010) TYPE_TUSB6010)
struct TUSBState { struct TUSBState {
@ -779,7 +779,7 @@ static void tusb6010_irq(void *opaque, int source, int level)
static void tusb6010_reset(DeviceState *dev) static void tusb6010_reset(DeviceState *dev)
{ {
TUSBState *s = TUSB(dev); TUSBState *s = TUSB6010(dev);
int i; int i;
s->test_reset = TUSB_PROD_TEST_RESET_VAL; s->test_reset = TUSB_PROD_TEST_RESET_VAL;
@ -815,7 +815,7 @@ static void tusb6010_reset(DeviceState *dev)
static void tusb6010_realize(DeviceState *dev, Error **errp) static void tusb6010_realize(DeviceState *dev, Error **errp)
{ {
TUSBState *s = TUSB(dev); TUSBState *s = TUSB6010(dev);
SysBusDevice *sbd = SYS_BUS_DEVICE(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev);
s->otg_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, tusb_otg_tick, s); s->otg_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, tusb_otg_tick, s);