From: David Lechner Date: Mon, 5 May 2025 19:20:37 +0000 (-0500) Subject: iio: magnetometer: hmc5843_spi: remove bits_per_word = 8 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=c48919febc15b7af18be38ba47a43594aa3ccf8a;p=linux-2.6-microblaze.git iio: magnetometer: hmc5843_spi: remove bits_per_word = 8 Remove setting bits_per_word = 8 from the hmc5843 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-10-341f85fcfe11@baylibre.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/magnetometer/hmc5843_spi.c b/drivers/iio/magnetometer/hmc5843_spi.c index b7fde331069d..6a55c1559b0d 100644 --- a/drivers/iio/magnetometer/hmc5843_spi.c +++ b/drivers/iio/magnetometer/hmc5843_spi.c @@ -60,7 +60,6 @@ static int hmc5843_spi_probe(struct spi_device *spi) spi->mode = SPI_MODE_3; spi->max_speed_hz = 8000000; - spi->bits_per_word = 8; ret = spi_setup(spi); if (ret) return ret;