Merge tag 'hyperv-next-signed-20201214' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / input / touchscreen / ad7877.c
index 9b652f6..08f5372 100644 (file)
@@ -281,12 +281,14 @@ static int ad7877_read_adc(struct spi_device *spi, unsigned command)
 
        req->xfer[1].tx_buf = &req->ref_on;
        req->xfer[1].len = 2;
-       req->xfer[1].delay_usecs = ts->vref_delay_usecs;
+       req->xfer[1].delay.value = ts->vref_delay_usecs;
+       req->xfer[1].delay.unit = SPI_DELAY_UNIT_USECS;
        req->xfer[1].cs_change = 1;
 
        req->xfer[2].tx_buf = &req->command;
        req->xfer[2].len = 2;
-       req->xfer[2].delay_usecs = ts->vref_delay_usecs;
+       req->xfer[2].delay.value = ts->vref_delay_usecs;
+       req->xfer[2].delay.unit = SPI_DELAY_UNIT_USECS;
        req->xfer[2].cs_change = 1;
 
        req->xfer[3].rx_buf = &req->sample;