summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti8x/teeconn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti8x/teeconn.cpp')
-rw-r--r--src/devices/bus/ti8x/teeconn.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/devices/bus/ti8x/teeconn.cpp b/src/devices/bus/ti8x/teeconn.cpp
index 7277d4af93e..a251ee1ca4b 100644
--- a/src/devices/bus/ti8x/teeconn.cpp
+++ b/src/devices/bus/ti8x/teeconn.cpp
@@ -61,16 +61,15 @@ WRITE_LINE_MEMBER(tee_connector_device::ring_b_w)
}
-void tee_connector_device::device_add_mconfig(machine_config &config)
-{
- TI8X_LINK_PORT(config, m_port_a, default_ti8x_link_devices, nullptr);
- m_port_a->tip_handler().set(FUNC(tee_connector_device::tip_a_w));
- m_port_a->ring_handler().set(FUNC(tee_connector_device::ring_a_w));
-
- TI8X_LINK_PORT(config, m_port_b, default_ti8x_link_devices, nullptr);
- m_port_b->tip_handler().set(FUNC(tee_connector_device::tip_b_w));
- m_port_b->ring_handler().set(FUNC(tee_connector_device::ring_b_w));
-}
+MACHINE_CONFIG_START(tee_connector_device::device_add_mconfig)
+ MCFG_DEVICE_ADD(m_port_a, TI8X_LINK_PORT, default_ti8x_link_devices, nullptr)
+ MCFG_TI8X_LINK_TIP_HANDLER(WRITELINE(*this, tee_connector_device, tip_a_w))
+ MCFG_TI8X_LINK_RING_HANDLER(WRITELINE(*this, tee_connector_device, ring_a_w))
+
+ MCFG_DEVICE_ADD(m_port_b, TI8X_LINK_PORT, default_ti8x_link_devices, nullptr)
+ MCFG_TI8X_LINK_TIP_HANDLER(WRITELINE(*this, tee_connector_device, tip_b_w))
+ MCFG_TI8X_LINK_RING_HANDLER(WRITELINE(*this, tee_connector_device, ring_b_w))
+MACHINE_CONFIG_END
void tee_connector_device::device_start()