diff options
author | 2018-08-23 18:34:05 +0200 | |
---|---|---|
committer | 2018-08-23 18:34:21 +0200 | |
commit | f10c6be54ff10fe557388f4e1d7fe3b648782b21 (patch) | |
tree | 24c452f1943990bbb683220b4b71315a89e7926f /src/devices/machine/latch8.h | |
parent | 5d5a94e3d7bd1e7b4a3d66f68fb20fc4259480b5 (diff) |
ds1315, ds1386, ds2404, ds75160a, ds75161a, eeprom, eepromser, eeprompar: Removed MCFG, nw
Diffstat (limited to 'src/devices/machine/latch8.h')
-rw-r--r-- | src/devices/machine/latch8.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/latch8.h b/src/devices/machine/latch8.h index 44644c5952c..ee00fbdc38d 100644 --- a/src/devices/machine/latch8.h +++ b/src/devices/machine/latch8.h @@ -26,8 +26,7 @@ class latch8_device : public device_t { public: - latch8_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - + latch8_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); /* write & read full byte */ @@ -79,8 +78,9 @@ public: void set_nosync(uint32_t nosync) { m_nosync = nosync; } template <unsigned N, class Object> devcb_base &set_write_cb(Object &&cb) { return m_write_cb[N].set_callback(std::forward<Object>(cb)); } - template <unsigned N, class Object> devcb_base &set_read_cb(Object &&cb) { return m_read_cb[N].set_callback(std::forward<Object>(cb)); } + template <unsigned N> auto write_cb() { return m_write_cb[N].bind(); } + template <unsigned N> auto read_cb() { return m_read_cb[N].bind(); } protected: // device-level overrides |