}
-static struct dcpu16_hw hw_ = {
+struct dcpu16_hw_module dcpu16_hw_module_lem1802 = {
.name_ = "LEM1802 - Low Energy Monitor",
+
.id_l = 0xf615,
.id_h = 0x7349,
.ver = 0x1802,
.hwi = lem1802_hwi_,
.cycle = lem1802_cycle_,
.reset = lem1802_reset_,
- .data = (struct lem1802_ *)NULL
-};
-struct dcpu16_hw_module dcpu16_hw_module_lem1802 = {
- .template = &hw_,
.data_init = lem1802_data_init_,
.data_free = lem1802_data_free_,
.ctl = lem1802_data_ctl_,