~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to hw/i2c/i2c-ddc.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
    s->reg = 0;
231
231
}
232
232
 
233
 
static void i2c_ddc_event(I2CSlave *i2c, enum i2c_event event)
 
233
static int i2c_ddc_event(I2CSlave *i2c, enum i2c_event event)
234
234
{
235
235
    I2CDDCState *s = I2CDDC(i2c);
236
236
 
237
237
    if (event == I2C_START_SEND) {
238
238
        s->firstbyte = true;
239
239
    }
 
240
 
 
241
    return 0;
240
242
}
241
243
 
242
244
static int i2c_ddc_rx(I2CSlave *i2c)