Skip to content

Commit 10918e7

Browse files
dlechjic23
authored andcommitted
iio: pressure: bmp280-spi: remove bits_per_word = 8
Remove setting bits_per_word = 8 from the bmp280 driver. This is the default value for SPI transfers, so it is not necessary to explicitly set it. Since no other SPI settings are changed, we can also remove the call to spi_setup(). 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-12-341f85fcfe11@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 3108b5e commit 10918e7

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

drivers/iio/pressure/bmp280-spi.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ static int bmp280_spi_probe(struct spi_device *spi)
8181
const struct bmp280_chip_info *chip_info;
8282
struct regmap_bus const *bmp_regmap_bus;
8383
struct regmap *regmap;
84-
int ret;
85-
86-
spi->bits_per_word = 8;
87-
ret = spi_setup(spi);
88-
if (ret < 0) {
89-
dev_err(&spi->dev, "spi_setup failed!\n");
90-
return ret;
91-
}
9284

9385
chip_info = spi_get_device_match_data(spi);
9486

0 commit comments

Comments
 (0)