summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ra17xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ra17xx.h')
-rw-r--r--src/devices/machine/ra17xx.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/machine/ra17xx.h b/src/devices/machine/ra17xx.h
index a88111a9776..c0715336145 100644
--- a/src/devices/machine/ra17xx.h
+++ b/src/devices/machine/ra17xx.h
@@ -26,13 +26,13 @@
// Set the read line handler
#define MCFG_RA17XX_READ(devcb) \
- ra17xx_device::set_iord(*device, DEVCB_##devcb);
+ downcast<ra17xx_device &>(*device).set_iord(DEVCB_##devcb);
// Set the write line handler
#define MCFG_RA17XX_WRITE(devcb) \
- ra17xx_device::set_iowr(*device, DEVCB_##devcb);
+ downcast<ra17xx_device &>(*device).set_iowr(DEVCB_##devcb);
#define MCFG_RA17XX_CPU(tag) \
- ra17xx_device::set_cpu_tag(*device, "^" tag);
+ downcast<ra17xx_device &>(*device).set_cpu_tag("^" tag);
class ra17xx_device : public device_t
{
@@ -42,9 +42,9 @@ public:
DECLARE_READ8_MEMBER ( io_r );
DECLARE_WRITE8_MEMBER( io_w );
- template <class Object> static devcb_base &set_iord(device_t &device, Object &&cb) { return downcast<ra17xx_device &>(device).m_iord.set_callback(std::forward<Object>(cb)); }
- template <class Object> static devcb_base &set_iowr(device_t &device, Object &&cb) { return downcast<ra17xx_device &>(device).m_iowr.set_callback(std::forward<Object>(cb)); }
- static void set_cpu_tag(device_t &device, const char *tag) { downcast<ra17xx_device &>(device).m_cpu.set_tag(tag); }
+ template <class Object> devcb_base &set_iord(Object &&cb) { return m_iord.set_callback(std::forward<Object>(cb)); }
+ template <class Object> devcb_base &set_iowr(Object &&cb) { return m_iowr.set_callback(std::forward<Object>(cb)); }
+ void set_cpu_tag(const char *tag) { m_cpu.set_tag(tag); }
protected:
// device-level overrides