runtime/spi: don't apply channel offset

This commit is contained in:
Robert Jördens 2016-02-29 11:53:36 +01:00
parent 948fefa69a
commit aeae565d35

View File

@ -12,7 +12,7 @@
void spi_write(long long int timestamp, int channel, int addr,
unsigned int data)
{
rtio_chan_sel_write(CONFIG_RTIO_FIRST_SPI_CHANNEL + channel);
rtio_chan_sel_write(channel);
rtio_o_address_write(addr);
rtio_o_data_write(data);
rtio_o_timestamp_write(timestamp);