]> git.baikalelectronics.ru Git - kernel.git/commit
iio: pressure: bmp280: fix error message for wrong chip id
authorAkinobu Mita <akinobu.mita@gmail.com>
Thu, 28 Apr 2016 14:39:53 +0000 (23:39 +0900)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 May 2016 18:02:01 +0000 (19:02 +0100)
commitc8d52fd93ca8c068c66d5f697aac5dcfcca075b2
tree81852e64e02a7cf2b433269b84cc26eab2163f41
parent4c67f3fa8b488bd3902dedb469f19bb44fa58d44
iio: pressure: bmp280: fix error message for wrong chip id

The bmp280 driver also supports BMP180 which has a different chip id
with BMP280.  The probe routine verifies that the device reports the
correct chip id but the error message is confusing as if BMP280's chip
id is always expected.

Reported-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Matt Ranostay <mranostay@gmail.com>
Cc: Vlad Dogaru <vlad.dogaru@intel.com>
Cc: Christoph Mair <christoph.mair@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/bmp280.c