summaryrefslogtreecommitdiffstats
path: root/src/devices/machine/74157.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/74157.h')
-rw-r--r--src/devices/machine/74157.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/devices/machine/74157.h b/src/devices/machine/74157.h
index 196194c8ddb..96a23d64235 100644
--- a/src/devices/machine/74157.h
+++ b/src/devices/machine/74157.h
@@ -30,13 +30,13 @@
//**************************************************************************
#define MCFG_74157_A_IN_CB(_devcb) \
- devcb = &downcast<ls157_device &>(*device).set_a_in_callback(DEVCB_##_devcb);
+ downcast<ls157_device &>(*device).set_a_in_callback(DEVCB_##_devcb);
#define MCFG_74157_B_IN_CB(_devcb) \
- devcb = &downcast<ls157_device &>(*device).set_b_in_callback(DEVCB_##_devcb);
+ downcast<ls157_device &>(*device).set_b_in_callback(DEVCB_##_devcb);
#define MCFG_74157_OUT_CB(_devcb) \
- devcb = &downcast<ls157_device &>(*device).set_out_callback(DEVCB_##_devcb);
+ downcast<ls157_device &>(*device).set_out_callback(DEVCB_##_devcb);
//**************************************************************************
@@ -49,12 +49,15 @@ class ls157_device : public device_t
{
public:
// construction/destruction
- ls157_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+ ls157_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
// static configuration
template <class Object> devcb_base &set_a_in_callback(Object &&cb) { return m_a_in_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_b_in_callback(Object &&cb) { return m_b_in_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_out_callback(Object &&cb) { return m_out_cb.set_callback(std::forward<Object>(cb)); }
+ auto a_in_callback() { return m_a_in_cb.bind(); }
+ auto b_in_callback() { return m_b_in_cb.bind(); }
+ auto out_callback() { return m_out_cb.bind(); }
// data writes
DECLARE_WRITE8_MEMBER(a_w) { write_a(data); }