Skip to content

Commit 546a4f4

Browse files
vamoiridjic23
authored andcommitted
iio: pressure: Fixes BME280 SPI driver data
Use bme280_chip_info structure instead of bmp280_chip_info in SPI support for the BME280 sensor. Fixes: 0b0b772 ("iio: pressure: bmp280: Use chip_info pointers for each chip as driver data") Signed-off-by: Vasileios Amoiridis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent bfa8f18 commit 546a4f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iio/pressure/bmp280-spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static const struct of_device_id bmp280_of_spi_match[] = {
127127
{ .compatible = "bosch,bmp180", .data = &bmp180_chip_info },
128128
{ .compatible = "bosch,bmp181", .data = &bmp180_chip_info },
129129
{ .compatible = "bosch,bmp280", .data = &bmp280_chip_info },
130-
{ .compatible = "bosch,bme280", .data = &bmp280_chip_info },
130+
{ .compatible = "bosch,bme280", .data = &bme280_chip_info },
131131
{ .compatible = "bosch,bmp380", .data = &bmp380_chip_info },
132132
{ .compatible = "bosch,bmp580", .data = &bmp580_chip_info },
133133
{ },
@@ -139,7 +139,7 @@ static const struct spi_device_id bmp280_spi_id[] = {
139139
{ "bmp180", (kernel_ulong_t)&bmp180_chip_info },
140140
{ "bmp181", (kernel_ulong_t)&bmp180_chip_info },
141141
{ "bmp280", (kernel_ulong_t)&bmp280_chip_info },
142-
{ "bme280", (kernel_ulong_t)&bmp280_chip_info },
142+
{ "bme280", (kernel_ulong_t)&bme280_chip_info },
143143
{ "bmp380", (kernel_ulong_t)&bmp380_chip_info },
144144
{ "bmp580", (kernel_ulong_t)&bmp580_chip_info },
145145
{ }

0 commit comments

Comments
 (0)