summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/pc9801_kbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/pc9801_kbd.h')
-rw-r--r--src/mame/machine/pc9801_kbd.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/mame/machine/pc9801_kbd.h b/src/mame/machine/pc9801_kbd.h
index 7275bf99666..ac0965f9feb 100644
--- a/src/mame/machine/pc9801_kbd.h
+++ b/src/mame/machine/pc9801_kbd.h
@@ -11,15 +11,6 @@
#pragma once
-
-//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_PC9801_KBD_IRQ_CALLBACK(_write) \
- downcast<pc9801_kbd_device &>(*device).set_irq_wr_callback(DEVCB_##_write);
-
-
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -32,7 +23,7 @@ public:
// construction/destruction
pc9801_kbd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> devcb_base &set_irq_wr_callback(Object &&cb) { return m_write_irq.set_callback(std::forward<Object>(cb)); }
+ auto irq_wr_callback() { return m_write_irq.bind(); }
virtual ioport_constructor device_input_ports() const override;