summaryrefslogtreecommitdiffstats
path: root/src/devices/sound/ym2151.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/ym2151.h')
-rw-r--r--src/devices/sound/ym2151.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/sound/ym2151.h b/src/devices/sound/ym2151.h
index 0aba974025f..a25a424017b 100644
--- a/src/devices/sound/ym2151.h
+++ b/src/devices/sound/ym2151.h
@@ -41,9 +41,9 @@
//**************************************************************************
#define MCFG_YM2151_IRQ_HANDLER(_devcb) \
- devcb = &downcast<ym2151_device &>(*device).set_irq_handler(DEVCB_##_devcb);
+ downcast<ym2151_device &>(*device).set_irq_handler(DEVCB_##_devcb);
#define MCFG_YM2151_PORT_WRITE_HANDLER(_devcb) \
- devcb = &downcast<ym2151_device &>(*device).set_port_write_handler(DEVCB_##_devcb);
+ downcast<ym2151_device &>(*device).set_port_write_handler(DEVCB_##_devcb);
//**************************************************************************
@@ -63,6 +63,8 @@ public:
// configuration helpers
template <class Object> devcb_base &set_irq_handler(Object &&cb) { return m_irqhandler.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_port_write_handler(Object &&cb) { return m_portwritehandler.set_callback(std::forward<Object>(cb)); }
+ auto irq_handler() { return m_irqhandler.bind(); }
+ auto port_write_handler() { return m_portwritehandler.bind(); }
// read/write
DECLARE_READ8_MEMBER(read);