summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/jack.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-05-25 14:38:46 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-05-25 14:38:46 +0000
commit4bbba13b380087f621399c552d8ea80a6316b7c8 (patch)
treeb2836cdd5a17d711d55f1c0c0069fc04217177ba /src/mame/drivers/jack.c
parent70cd5297735e3022cdf7224e89f7f54838f0ff3f (diff)
Conversion of _DEVICE_HA​NDLER to _MEMBER methods - part 2 (no whatsnew)
Diffstat (limited to 'src/mame/drivers/jack.c')
-rw-r--r--src/mame/drivers/jack.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mame/drivers/jack.c b/src/mame/drivers/jack.c
index 8f6b62d7586..2e808651fcc 100644
--- a/src/mame/drivers/jack.c
+++ b/src/mame/drivers/jack.c
@@ -53,13 +53,11 @@ The 2 ay-8910 read ports are responsible for reading the sound commands.
*
*************************************/
-static READ8_DEVICE_HANDLER( timer_r )
+READ8_MEMBER(jack_state::timer_r)
{
- jack_state *state = device->machine().driver_data<jack_state>();
-
/* wrong! there should be no need for timer_rate, the same function */
/* should work for both games */
- return state->m_audiocpu->total_cycles() / state->m_timer_rate;
+ return m_audiocpu->total_cycles() / m_timer_rate;
}
@@ -777,7 +775,7 @@ static const ay8910_interface ay8910_config =
AY8910_LEGACY_OUTPUT,
AY8910_DEFAULT_LOADS,
DEVCB_DRIVER_MEMBER(driver_device, soundlatch_byte_r),
- DEVCB_DEVICE_HANDLER("audiocpu", timer_r)
+ DEVCB_DRIVER_MEMBER(jack_state,timer_r)
};