projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f92bb6b
)
iio: dac: ad5766: remove bits_per_word = 8
author
David Lechner
<dlechner@baylibre.com>
Mon, 5 May 2025 19:20:32 +0000
(14:20 -0500)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Wed, 21 May 2025 13:20:30 +0000
(14:20 +0100)
Remove setting bits_per_word = 8 from the ad5766 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-5-341f85fcfe11@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5766.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/dac/ad5766.c
b/drivers/iio/dac/ad5766.c
index dc766c8fd37073457ad2cceeb9e57ec809d7aef4..f6a0a0d84fefd268b4693ecca1e2cc0e8f241fef 100644
(file)
--- a/
drivers/iio/dac/ad5766.c
+++ b/
drivers/iio/dac/ad5766.c
@@
-148,13
+148,11
@@
static int __ad5766_spi_read(struct ad5766_state *st, u8 dac, int *val)
struct spi_transfer xfers[] = {
{
.tx_buf = &st->data[0].d32,
- .bits_per_word = 8,
.len = 3,
.cs_change = 1,
}, {
.tx_buf = &st->data[1].d32,
.rx_buf = &st->data[2].d32,
- .bits_per_word = 8,
.len = 3,
},
};