summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hlcd0538.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/hlcd0538.h')
-rw-r--r--src/devices/video/hlcd0538.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/devices/video/hlcd0538.h b/src/devices/video/hlcd0538.h
index 8751020860f..187523e1076 100644
--- a/src/devices/video/hlcd0538.h
+++ b/src/devices/video/hlcd0538.h
@@ -40,23 +40,14 @@
*/
-// C/R pins (0538: d0-d7 for rows)
-#define MCFG_HLCD0538_WRITE_COLS_CB(_devcb) \
- downcast<hlcd0538_device &>(*device).set_write_cols_callback(DEVCB_##_devcb);
-
-// INTERRUPT pin
-#define MCFG_HLCD0538_INTERRUPT_CB(_devcb) \
- downcast<hlcd0538_device &>(*device).set_write_interrupt_callback(DEVCB_##_devcb);
-
-
class hlcd0538_device : public device_t
{
public:
hlcd0538_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
// configuration helpers
- template <typename Object> devcb_base &set_write_cols_callback(Object &&cb) { return m_write_cols.set_callback(std::forward<Object>(cb)); }
- template <typename Object> devcb_base &set_write_interrupt_callback(Object &&cb) { return m_write_interrupt.set_callback(std::forward<Object>(cb)); }
+ auto write_cols_callback() { return m_write_cols.bind(); } // C/R pins (0538: d0-d7 for rows)
+ auto write_interrupt_callback() { return m_write_interrupt.bind(); } // INTERRUPT pin
DECLARE_WRITE_LINE_MEMBER(write_clk);
DECLARE_WRITE_LINE_MEMBER(write_lcd);