iio: gyro: adxrs450: remove bits_per_word = 8
authorDavid Lechner <dlechner@baylibre.com>
Mon, 5 May 2025 19:20:35 +0000 (14:20 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 21 May 2025 13:20:31 +0000 (14:20 +0100)
Remove setting bits_per_word = 8 from the adxrs450 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-8-341f85fcfe11@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/adxrs450.c

index 5dadb88a4d92c27b4bcba121660198311c50150b..a1d8d3cb301b26a1b15fca2f6bb9bb1494ffce79 100644 (file)
@@ -95,12 +95,10 @@ static int adxrs450_spi_read_reg_16(struct iio_dev *indio_dev,
        struct spi_transfer xfers[] = {
                {
                        .tx_buf = &st->tx,
-                       .bits_per_word = 8,
                        .len = sizeof(st->tx),
                        .cs_change = 1,
                }, {
                        .rx_buf = &st->rx,
-                       .bits_per_word = 8,
                        .len = sizeof(st->rx),
                },
        };
@@ -169,12 +167,10 @@ static int adxrs450_spi_sensor_data(struct iio_dev *indio_dev, s16 *val)
        struct spi_transfer xfers[] = {
                {
                        .tx_buf = &st->tx,
-                       .bits_per_word = 8,
                        .len = sizeof(st->tx),
                        .cs_change = 1,
                }, {
                        .rx_buf = &st->rx,
-                       .bits_per_word = 8,
                        .len = sizeof(st->rx),
                },
        };
@@ -209,7 +205,6 @@ static int adxrs450_spi_initial(struct adxrs450_state *st,
        struct spi_transfer xfers = {
                .tx_buf = &st->tx,
                .rx_buf = &st->rx,
-               .bits_per_word = 8,
                .len = sizeof(st->tx),
        };