summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ds2404.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ds2404.h')
-rw-r--r--src/devices/machine/ds2404.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/machine/ds2404.h b/src/devices/machine/ds2404.h
index 55d9f63776c..43fbe93ad15 100644
--- a/src/devices/machine/ds2404.h
+++ b/src/devices/machine/ds2404.h
@@ -27,13 +27,13 @@
MCFG_DS2404_REF_DAY(_ref_day)
#define MCFG_DS2404_REF_YEAR(_ref_year) \
- ds2404_device::static_set_ref_year(*device, _ref_year);
+ downcast<ds2404_device &>(*device).set_ref_year(_ref_year);
#define MCFG_DS2404_REF_MONTH(_ref_month) \
- ds2404_device::static_set_ref_month(*device, _ref_month);
+ downcast<ds2404_device &>(*device).set_ref_month(_ref_month);
#define MCFG_DS2404_REF_DAY(_ref_day) \
- ds2404_device::static_set_ref_day(*device, _ref_day);
+ downcast<ds2404_device &>(*device).set_ref_day(_ref_day);
//**************************************************************************
@@ -50,9 +50,9 @@ public:
ds2404_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// inline configuration helpers
- static void static_set_ref_year(device_t &device, uint32_t m_ref_year);
- static void static_set_ref_month(device_t &device, uint8_t m_ref_month);
- static void static_set_ref_day(device_t &device, uint8_t m_ref_day);
+ void set_ref_year(uint32_t year) { m_ref_year = year; }
+ void set_ref_month(uint8_t month) { m_ref_month = month; }
+ void set_ref_day(uint8_t day) { m_ref_day = day; }
/* 1-wire interface reset */
DECLARE_WRITE8_MEMBER(ds2404_1w_reset_w);