projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cdd295
)
iio: dac: ltc2688: remove bits_per_word = 8
author
David Lechner
<dlechner@baylibre.com>
Mon, 5 May 2025 19:20:34 +0000
(14:20 -0500)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Wed, 21 May 2025 13:20:31 +0000
(14:20 +0100)
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>
drivers/iio/dac/ltc2688.c
patch
|
blob
|
history
diff --git
a/drivers/iio/dac/ltc2688.c
b/drivers/iio/dac/ltc2688.c
index
757b483
..
1f24f07
100644
(file)
--- a/
drivers/iio/dac/ltc2688.c
+++ b/
drivers/iio/dac/ltc2688.c
@@
-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,
},
};