[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240602134150.6cdf01af@jic23-huawei>
Date: Sun, 2 Jun 2024 13:41:50 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Vasileios Amoiridis <vassilisamir@...il.com>
Cc: lars@...afoo.de, himanshujha199640@...il.com, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 05/17] iio: chemical: bme680: Fix type in define
On Mon, 27 May 2024 20:37:53 +0200
Vasileios Amoiridis <vassilisamir@...il.com> wrote:
Patch title "type" should be "typo". :)
> Fix a define typo that instead of BME680_... it is
> saying BM6880_...
>
> Signed-off-by: Vasileios Amoiridis <vassilisamir@...il.com>
> ---
> drivers/iio/chemical/bme680.h | 2 +-
> drivers/iio/chemical/bme680_core.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/chemical/bme680.h b/drivers/iio/chemical/bme680.h
> index 4edc5d21cb9f..3133d624270a 100644
> --- a/drivers/iio/chemical/bme680.h
> +++ b/drivers/iio/chemical/bme680.h
> @@ -12,7 +12,7 @@
>
> #define BME680_REG_TEMP_MSB 0x22
> #define BME680_REG_PRESS_MSB 0x1F
> -#define BM6880_REG_HUMIDITY_MSB 0x25
> +#define BME680_REG_HUMIDITY_MSB 0x25
> #define BME680_REG_GAS_MSB 0x2A
> #define BME680_REG_GAS_R_LSB 0x2B
> #define BME680_GAS_STAB_BIT BIT(4)
> diff --git a/drivers/iio/chemical/bme680_core.c b/drivers/iio/chemical/bme680_core.c
> index dd2cd11b6dd3..8b42c4716412 100644
> --- a/drivers/iio/chemical/bme680_core.c
> +++ b/drivers/iio/chemical/bme680_core.c
> @@ -719,7 +719,7 @@ static int bme680_read_humid(struct bme680_data *data,
> if (ret < 0)
> return ret;
>
> - ret = regmap_bulk_read(data->regmap, BM6880_REG_HUMIDITY_MSB,
> + ret = regmap_bulk_read(data->regmap, BME680_REG_HUMIDITY_MSB,
> &tmp, sizeof(tmp));
> if (ret < 0) {
> dev_err(dev, "failed to read humidity\n");
Powered by blists - more mailing lists