summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/i2cmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/i2cmem.h')
-rw-r--r--src/devices/machine/i2cmem.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/machine/i2cmem.h b/src/devices/machine/i2cmem.h
index 68bef6dde2f..32a40dba6af 100644
--- a/src/devices/machine/i2cmem.h
+++ b/src/devices/machine/i2cmem.h
@@ -91,13 +91,13 @@ public:
// construction/destruction
i2cmem_device( const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock );
- void set_address(int address) { m_slave_address = address; }
- void set_page_size(int page_size) { m_page_size = page_size; }
- void set_data_size(int data_size) { m_data_size = data_size; }
- void set_e0(int e0) { m_e0 = e0; }
- void set_e1(int e1) { m_e1 = e1; }
- void set_e2(int e2) { m_e2 = e2; }
- void set_wc(int wc) { m_wc = wc; }
+ i2cmem_device & set_address(int address) { m_slave_address = address; return *this; }
+ i2cmem_device & set_page_size(int page_size) { m_page_size = page_size; return *this; }
+ i2cmem_device & set_data_size(int data_size) { m_data_size = data_size; return *this; }
+ i2cmem_device & set_e0(int e0) { m_e0 = e0; return *this; }
+ i2cmem_device & set_e1(int e1) { m_e1 = e1; return *this; }
+ i2cmem_device & set_e2(int e2) { m_e2 = e2; return *this; }
+ i2cmem_device & set_wc(int wc) { m_wc = wc; return *this; }
// I/O operations
DECLARE_WRITE_LINE_MEMBER( write_e0 );