summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/trs80m2kb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/trs80m2kb.h')
-rw-r--r--src/mame/machine/trs80m2kb.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mame/machine/trs80m2kb.h b/src/mame/machine/trs80m2kb.h
index b3f0d987855..a446fdca783 100644
--- a/src/mame/machine/trs80m2kb.h
+++ b/src/mame/machine/trs80m2kb.h
@@ -23,16 +23,6 @@
#define TRS80M2_KEYBOARD_TAG "trs80m2kb"
-
-//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_TRS80M2_KEYBOARD_CLOCK_CALLBACK(_write) \
- downcast<trs80m2_keyboard_device &>(*device).set_clock_wr_callback(DEVCB_##_write);
-
-
-
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -45,7 +35,7 @@ public:
// construction/destruction
trs80m2_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> devcb_base &set_clock_wr_callback(Object &&cb) { return m_write_clock.set_callback(std::forward<Object>(cb)); }
+ auto clock_wr_callback() { return m_write_clock.bind(); }
DECLARE_WRITE_LINE_MEMBER( busy_w );
DECLARE_READ_LINE_MEMBER( data_r );