Skip to content

Commit 3108b5e

Browse files
dlechjic23
authored andcommitted
iio: magnetometer: rm3100-spi: remove bits_per_word = 8
Remove setting bits_per_word = 8 from the rm3100 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-11-341f85fcfe11@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent c48919f commit 3108b5e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/iio/magnetometer/rm3100-spi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ static int rm3100_probe(struct spi_device *spi)
3232
spi->mode = SPI_MODE_0;
3333
/* Data rates cannot exceed 1Mbits. */
3434
spi->max_speed_hz = 1000000;
35-
spi->bits_per_word = 8;
3635
ret = spi_setup(spi);
3736
if (ret)
3837
return ret;

0 commit comments

Comments
 (0)