Revision 81a322d4 hw/tmp105.c
b/hw/tmp105.c | ||
---|---|---|
226 | 226 |
tmp105_interrupt_update(s); |
227 | 227 |
} |
228 | 228 |
|
229 |
static void tmp105_init(i2c_slave *i2c)
|
|
229 |
static int tmp105_init(i2c_slave *i2c)
|
|
230 | 230 |
{ |
231 | 231 |
TMP105State *s = FROM_I2C_SLAVE(TMP105State, i2c); |
232 | 232 |
|
... | ... | |
235 | 235 |
tmp105_reset(&s->i2c); |
236 | 236 |
|
237 | 237 |
register_savevm("TMP105", -1, 0, tmp105_save, tmp105_load, s); |
238 |
return 0; |
|
238 | 239 |
} |
239 | 240 |
|
240 | 241 |
static I2CSlaveInfo tmp105_info = { |
Also available in: Unified diff