summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound
diff options
context:
space:
mode:
author Ryan Holtz <therealmogminer@gmail.com>2018-05-28 12:58:19 +0200
committer Ryan Holtz <therealmogminer@gmail.com>2018-05-28 12:58:19 +0200
commitc4fac5bfdc7c43ef1090139f2911d369dfa26da6 (patch)
tree9ceb8ad4f2453ee4c26060df5d57425bb863a2b5 /src/devices/sound
parent9d3ee528669a2389a1622f78bfaedd9756a794a1 (diff)
wpc_shift, wpc_lamp, wpc_out, wpc_pic, wpc_dmd, ygv608, timekpr, at28c16, c352: Eliminated customized MCFG_DEVICE_ADD macros. (nw)
Diffstat (limited to 'src/devices/sound')
-rw-r--r--src/devices/sound/c352.cpp1
-rw-r--r--src/devices/sound/c352.h21
2 files changed, 7 insertions, 15 deletions
diff --git a/src/devices/sound/c352.cpp b/src/devices/sound/c352.cpp
index ea22dbf50f6..38d9987d091 100644
--- a/src/devices/sound/c352.cpp
+++ b/src/devices/sound/c352.cpp
@@ -42,7 +42,6 @@ c352_device::c352_device(const machine_config &mconfig, const char *tag, device_
{
}
-
//-------------------------------------------------
// rom_bank_updated - the rom bank has changed
//-------------------------------------------------
diff --git a/src/devices/sound/c352.h b/src/devices/sound/c352.h
index 5715bf653cf..1900f58cbe2 100644
--- a/src/devices/sound/c352.h
+++ b/src/devices/sound/c352.h
@@ -7,18 +7,6 @@
//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_C352_ADD(tag, clock, setting) \
- MCFG_DEVICE_ADD((tag), C352, (clock)) \
- MCFG_C352_DIVIDER(setting)
-
-#define MCFG_C352_DIVIDER(setting) \
- downcast<c352_device &>(*device).set_divider((setting));
-
-
-//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -30,10 +18,15 @@ class c352_device : public device_t,
{
public:
// construction/destruction
+ c352_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, int divider)
+ : c352_device(mconfig, tag, owner, clock)
+ {
+ set_divider(divider);
+ }
+
c352_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- // inline configuration helpers
- void set_divider(int setting) { m_divider = setting; }
+ void set_divider(int divider) { m_divider = divider; }
DECLARE_READ16_MEMBER(read);
DECLARE_WRITE16_MEMBER(write);