]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: pressure: bmp280: Add missing bmp085 to SPI id table
authorSam Protsenko <semen.protsenko@linaro.org>
Wed, 20 Dec 2023 18:47:53 +0000 (12:47 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:51:42 +0000 (09:51 +0100)
commit016ecfdbf329270db8f731098d06415fdfeed800
treeb37f2e1c8493efc01097b87d082a953b3633db1d
parentf6ca5645ff7c4059875779d5e1e6cea40c321564
iio: pressure: bmp280: Add missing bmp085 to SPI id table

commit b67f3e653e305abf1471934d7b9fdb9ad2df3eef upstream.

"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: b26b4e91700f ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/pressure/bmp280-spi.c