summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/74123.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/74123.c')
-rw-r--r--src/emu/machine/74123.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emu/machine/74123.c b/src/emu/machine/74123.c
index be4c66cc69c..fd899470fd0 100644
--- a/src/emu/machine/74123.c
+++ b/src/emu/machine/74123.c
@@ -30,9 +30,8 @@ struct _ttl74123_t
INLINE ttl74123_t *get_safe_token(running_device *device) {
assert( device != NULL );
- assert( device->token != NULL );
- assert( device->type == TTL74123 );
- return ( ttl74123_t * ) device->token;
+ assert( device->type() == TTL74123 );
+ return ( ttl74123_t * ) downcast<legacy_device_base *>(device)->token();
}
@@ -191,7 +190,7 @@ static DEVICE_START( ttl74123 )
ttl74123_t *chip = get_safe_token(device);
/* validate arguments */
- chip->intf = (ttl74123_config *)device->baseconfig().static_config;
+ chip->intf = (ttl74123_config *)device->baseconfig().static_config();
assert_always(chip->intf, "No interface specified");
assert_always((chip->intf->connection_type != TTL74123_GROUNDED) || (chip->intf->cap >= CAP_U(0.01)), "Only capacitors >= 0.01uF supported for GROUNDED type");
@@ -224,7 +223,6 @@ DEVICE_GET_INFO( ttl74123 )
/* --- the following bits of info are returned as 64-bit signed integers --- */
case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(ttl74123_t); break;
case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break;
- case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break;
/* --- the following bits of info are returned as pointers to data or functions --- */
case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(ttl74123); break;