summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/am9517a.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/am9517a.cpp')
-rw-r--r--src/devices/machine/am9517a.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/devices/machine/am9517a.cpp b/src/devices/machine/am9517a.cpp
index 5fda6ed486c..f277f9ffed1 100644
--- a/src/devices/machine/am9517a.cpp
+++ b/src/devices/machine/am9517a.cpp
@@ -501,14 +501,11 @@ void am9517a_device::device_start()
save_item(NAME(m_temp));
save_item(NAME(m_request));
- for (int i = 0; i < 4; i++)
- {
- save_item(NAME(m_channel[i].m_address), i);
- save_item(NAME(m_channel[i].m_count), i);
- save_item(NAME(m_channel[i].m_base_address), i);
- save_item(NAME(m_channel[i].m_base_count), i);
- save_item(NAME(m_channel[i].m_mode), i);
- }
+ save_item(STRUCT_MEMBER(m_channel, m_address));
+ save_item(STRUCT_MEMBER(m_channel, m_count));
+ save_item(STRUCT_MEMBER(m_channel, m_base_address));
+ save_item(STRUCT_MEMBER(m_channel, m_base_count));
+ save_item(STRUCT_MEMBER(m_channel, m_mode));
m_address_mask = 0xffff;