diff options
Diffstat (limited to 'src/devices/machine/74165.h')
-rw-r--r-- | src/devices/machine/74165.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/devices/machine/74165.h b/src/devices/machine/74165.h index 1db3f2809fe..145f3195172 100644 --- a/src/devices/machine/74165.h +++ b/src/devices/machine/74165.h @@ -27,17 +27,6 @@ //************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_TTL165_DATA_CB(_devcb) \ - downcast<ttl165_device &>(*device).set_data_callback(DEVCB_##_devcb); - -#define MCFG_TTL165_QH_CB(_devcb) \ - downcast<ttl165_device &>(*device).set_qh_callback(DEVCB_##_devcb); - - -//************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -47,12 +36,8 @@ public: // construction/destruction ttl165_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - // configuration - template <class Object> devcb_base &set_data_callback(Object &&cb) - { return m_data_cb.set_callback(std::forward<Object>(cb)); } - - template <class Object> devcb_base &set_qh_callback(Object &&cb) - { return m_qh_cb.set_callback(std::forward<Object>(cb)); } + auto data_callback() { return m_data_cb.bind(); } + auto qh_callback() { return m_qh_cb.bind(); } DECLARE_WRITE_LINE_MEMBER(serial_w); DECLARE_WRITE_LINE_MEMBER(clock_w); |