Message ID | a34c72a2027c4b98bd815e8cf01f56d69c5d1386.1692305434.git.ang.iglesiasg@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | iio: pressure: bmp280: Add support for BMP390 | expand |
On Thu, Aug 17, 2023 at 11:05:22PM +0200, Angel Iglesias wrote: > Adds BMP390 device id to the supported ids on bmp380 sensor family ... > #define BMP180_CHIP_ID 0x55 > #define BMP280_CHIP_ID 0x58 > #define BME280_CHIP_ID 0x60 > +#define BMP390_CHIP_ID 0x60 Keep it a bit better ordered. At the first glance, move before BME.
diff --git a/drivers/iio/pressure/bmp280-core.c b/drivers/iio/pressure/bmp280-core.c index 67941a67e513..f2a63513e7eb 100644 --- a/drivers/iio/pressure/bmp280-core.c +++ b/drivers/iio/pressure/bmp280-core.c @@ -1225,7 +1225,7 @@ static int bmp380_chip_config(struct bmp280_data *data) static const int bmp380_oversampling_avail[] = { 1, 2, 4, 8, 16, 32 }; static const int bmp380_iir_filter_coeffs_avail[] = { 1, 2, 4, 8, 16, 32, 64, 128}; -static const int bmp380_chip_ids[] = { BMP380_CHIP_ID }; +static const int bmp380_chip_ids[] = { BMP380_CHIP_ID, BMP390_CHIP_ID }; const struct bmp280_chip_info bmp380_chip_info = { .id_reg = BMP380_REG_ID, diff --git a/drivers/iio/pressure/bmp280.h b/drivers/iio/pressure/bmp280.h index d68745254340..bfb98e3a5596 100644 --- a/drivers/iio/pressure/bmp280.h +++ b/drivers/iio/pressure/bmp280.h @@ -293,6 +293,7 @@ #define BMP180_CHIP_ID 0x55 #define BMP280_CHIP_ID 0x58 #define BME280_CHIP_ID 0x60 +#define BMP390_CHIP_ID 0x60 #define BMP280_SOFT_RESET_VAL 0xB6 /* BMP280 register skipped special values */
Adds BMP390 device id to the supported ids on bmp380 sensor family Signed-off-by: Angel Iglesias <ang.iglesiasg@gmail.com>