From: David Lechner Date: Mon, 5 May 2025 19:20:38 +0000 (-0500) Subject: iio: magnetometer: rm3100-spi: remove bits_per_word = 8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3108b5e0bc4f15d48bb43224e6ecc9b7171f26ab;p=users%2Fwilly%2Fxarray.git 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 Reviewed-by: Nuno Sá Link: https://patch.msgid.link/20250505-iio-remove-bits_per_word-8-v1-11-341f85fcfe11@baylibre.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/magnetometer/rm3100-spi.c b/drivers/iio/magnetometer/rm3100-spi.c index dd6d48043740..2f60a41c07f7 100644 --- a/drivers/iio/magnetometer/rm3100-spi.c +++ b/drivers/iio/magnetometer/rm3100-spi.c @@ -32,7 +32,6 @@ static int rm3100_probe(struct spi_device *spi) spi->mode = SPI_MODE_0; /* Data rates cannot exceed 1Mbits. */ spi->max_speed_hz = 1000000; - spi->bits_per_word = 8; ret = spi_setup(spi); if (ret) return ret;