mirror of
https://github.com/qemu/qemu.git
synced 2024-11-30 07:13:38 +08:00
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:
parent
b327066931
commit
d4db94629a
@ -32,7 +32,7 @@
|
||||
|
||||
#define TYPE_TUSB6010 "tusb6010"
|
||||
typedef struct TUSBState TUSBState;
|
||||
DECLARE_INSTANCE_CHECKER(TUSBState, TUSB,
|
||||
DECLARE_INSTANCE_CHECKER(TUSBState, TUSB6010,
|
||||
TYPE_TUSB6010)
|
||||
|
||||
struct TUSBState {
|
||||
@ -779,7 +779,7 @@ static void tusb6010_irq(void *opaque, int source, int level)
|
||||
|
||||
static void tusb6010_reset(DeviceState *dev)
|
||||
{
|
||||
TUSBState *s = TUSB(dev);
|
||||
TUSBState *s = TUSB6010(dev);
|
||||
int i;
|
||||
|
||||
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)
|
||||
{
|
||||
TUSBState *s = TUSB(dev);
|
||||
TUSBState *s = TUSB6010(dev);
|
||||
SysBusDevice *sbd = SYS_BUS_DEVICE(dev);
|
||||
|
||||
s->otg_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, tusb_otg_tick, s);
|
||||
|
Loading…
Reference in New Issue
Block a user