iio: dac: ltc2688: remove bits_per_word = 8
Remove setting bits_per_word = 8 from the ltc2688 driver. This is the default value for SPI transfers, so it is not necessary to explicitly set it. Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Link: https://patch.msgid.link/20250505-iio-remove-bits_per_word-8-v1-7-341f85fcfe11@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
3cdd2953b3
commit
bfc50ab35a
@@ -104,13 +104,11 @@ static int ltc2688_spi_read(void *context, const void *reg, size_t reg_size,
|
||||
struct spi_transfer xfers[] = {
|
||||
{
|
||||
.tx_buf = st->tx_data,
|
||||
.bits_per_word = 8,
|
||||
.len = reg_size + val_size,
|
||||
.cs_change = 1,
|
||||
}, {
|
||||
.tx_buf = st->tx_data + 3,
|
||||
.rx_buf = st->rx_data,
|
||||
.bits_per_word = 8,
|
||||
.len = reg_size + val_size,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user