]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/i2c/algos/i2c-algo-pcf.c
i2c-algo-pcf: Pass adapter data into ->waitforpin() method
[linux-beck.git] / drivers / i2c / algos / i2c-algo-pcf.c
index 1e328d19cd6dd9aaf79573a7521f96579ff7cf0b..a8a5b6d1dd88685193ba297985c978fdb1490a8b 100644 (file)
@@ -135,7 +135,7 @@ static int wait_for_pin(struct i2c_algo_pcf_data *adap, int *status) {
        *status = get_pcf(adap, 1);
 #ifndef STUB_I2C
        while (timeout-- && (*status & I2C_PCF_PIN)) {
-               adap->waitforpin();
+               adap->waitforpin(adap->data);
                *status = get_pcf(adap, 1);
        }
        if (*status & I2C_PCF_LAB) {