summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hlcd0515.h
diff options
context:
space:
mode:
author wilbertpol <wilbertpol@users.noreply.github.com>2018-02-25 14:18:39 +0100
committer Olivier Galibert <galibert@pobox.com>2018-02-25 14:18:39 +0100
commit9cc815af31f4d8a406349d35b0871328a1471e08 (patch)
tree6ade99610cf8234826cf6cd2c80ea8d4a1646439 /src/devices/video/hlcd0515.h
parentf07b93b0532d379eb542ca507b103e71196e9147 (diff)
de-staticify initializations for src/devices/video (#3270)
Diffstat (limited to 'src/devices/video/hlcd0515.h')
-rw-r--r--src/devices/video/hlcd0515.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/video/hlcd0515.h b/src/devices/video/hlcd0515.h
index 5081a97a857..0f4e1444a93 100644
--- a/src/devices/video/hlcd0515.h
+++ b/src/devices/video/hlcd0515.h
@@ -43,11 +43,11 @@
// COL/ROW pins (offset for ROW)
#define MCFG_HLCD0515_WRITE_COLS_CB(_devcb) \
- devcb = &hlcd0515_device::set_write_cols_callback(*device, DEVCB_##_devcb);
+ devcb = &downcast<hlcd0515_device &>(*device).set_write_cols_callback(DEVCB_##_devcb);
// DATA OUT pin, don't use on HLCD0569
#define MCFG_HLCD0515_WRITE_DATA_CB(_devcb) \
- devcb = &hlcd0515_device::set_write_data_callback(*device, DEVCB_##_devcb);
+ devcb = &downcast<hlcd0515_device &>(*device).set_write_data_callback(DEVCB_##_devcb);
class hlcd0515_device : public device_t
@@ -55,9 +55,9 @@ class hlcd0515_device : public device_t
public:
hlcd0515_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
- // static configuration helpers
- template <typename Object> static devcb_base &set_write_cols_callback(device_t &device, Object &&cb) { return downcast<hlcd0515_device &>(device).m_write_cols.set_callback(std::forward<Object>(cb)); }
- template <typename Object> static devcb_base &set_write_data_callback(device_t &device, Object &&cb) { return downcast<hlcd0515_device &>(device).m_write_data.set_callback(std::forward<Object>(cb)); }
+ // 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_data_callback(Object &&cb) { return m_write_data.set_callback(std::forward<Object>(cb)); }
DECLARE_WRITE_LINE_MEMBER(write_clock);
DECLARE_WRITE_LINE_MEMBER(write_cs);