summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/alpha68k.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2013-04-02 09:53:25 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2013-04-02 09:53:25 +0000
commit1c813f4e2ad477f435ea43aefcea5343dc329250 (patch)
treeede5f82f0824fe3382b1c83e3fd62e9cf8328c48 /src/mame/drivers/alpha68k.c
parentc6533ad9194cad9a96a808f609815689cfe1a107 (diff)
device callback handler cleanup (nw)
Diffstat (limited to 'src/mame/drivers/alpha68k.c')
-rw-r--r--src/mame/drivers/alpha68k.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/drivers/alpha68k.c b/src/mame/drivers/alpha68k.c
index ea374a7bdab..8097e1a1eb6 100644
--- a/src/mame/drivers/alpha68k.c
+++ b/src/mame/drivers/alpha68k.c
@@ -1846,15 +1846,14 @@ static const ym2203_interface ym2203_config =
DEVCB_NULL
};
-static void YM3812_irq( device_t *device, int param )
+WRITE_LINE_MEMBER(alpha68k_state::ym3812_irq)
{
- alpha68k_state *state = device->machine().driver_data<alpha68k_state>();
- state->m_audiocpu->set_input_line(0, (param) ? HOLD_LINE : CLEAR_LINE);
+ m_audiocpu->set_input_line(0, (state) ? HOLD_LINE : CLEAR_LINE);
}
static const ym3812_interface ym3812_config =
{
- DEVCB_LINE(YM3812_irq)
+ DEVCB_DRIVER_LINE_MEMBER(alpha68k_state,ym3812_irq)
};