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 <semen.protsenko@linaro.org> Fixes: b26b4e9 ("iio: pressure: bmp280: add SPI interface driver") Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 95a0d59 commit b67f3e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)