Skip to content

Commit b67f3e6

Browse files
Sam Protsenkojic23
authored andcommitted
iio: pressure: bmp280: Add missing bmp085 to SPI id table
"bmp085" is missing in bmp280_spi_id[] table, which leads to the next warning in dmesg: SPI driver bmp280 has no spi_device_id for bosch,bmp085 Add "bmp085" to bmp280_spi_id[] by mimicking its existing description in bmp280_of_spi_match[] table to fix the above warning. Signed-off-by: Sam Protsenko <[email protected]> Fixes: b26b4e9 ("iio: pressure: bmp280: add SPI interface driver") Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 95a0d59 commit b67f3e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/pressure/bmp280-spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ static const struct of_device_id bmp280_of_spi_match[] = {
8787
MODULE_DEVICE_TABLE(of, bmp280_of_spi_match);
8888

8989
static const struct spi_device_id bmp280_spi_id[] = {
90+
{ "bmp085", (kernel_ulong_t)&bmp180_chip_info },
9091
{ "bmp180", (kernel_ulong_t)&bmp180_chip_info },
9192
{ "bmp181", (kernel_ulong_t)&bmp180_chip_info },
9293
{ "bmp280", (kernel_ulong_t)&bmp280_chip_info },

0 commit comments

Comments
 (0)