提交 f0ef941a 编写于 作者: R Richard Lai 提交者: Jonathan Cameron

iio: chemical: ccs811: Typo correction in HW_ID_VALUE constant define naming

This particular constant was named with prefix "CCS881", which should be
"CCS811" instead, just like the rest of constant names in the file, as this
driver implementation is for AMS CCS811 sensor. "CCS881" could literally be
referring to another sensor product unrelated to AMS CCS811 sensor.
Signed-off-by: NRichard Lai <richard@richardman.com>
Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
上级 14827050
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#define CCS811_ALG_RESULT_DATA 0x02 #define CCS811_ALG_RESULT_DATA 0x02
#define CCS811_RAW_DATA 0x03 #define CCS811_RAW_DATA 0x03
#define CCS811_HW_ID 0x20 #define CCS811_HW_ID 0x20
#define CCS881_HW_ID_VALUE 0x81 #define CCS811_HW_ID_VALUE 0x81
#define CCS811_HW_VERSION 0x21 #define CCS811_HW_VERSION 0x21
#define CCS811_HW_VERSION_VALUE 0x10 #define CCS811_HW_VERSION_VALUE 0x10
#define CCS811_HW_VERSION_MASK 0xF0 #define CCS811_HW_VERSION_MASK 0xF0
...@@ -353,7 +353,7 @@ static int ccs811_probe(struct i2c_client *client, ...@@ -353,7 +353,7 @@ static int ccs811_probe(struct i2c_client *client,
if (ret < 0) if (ret < 0)
return ret; return ret;
if (ret != CCS881_HW_ID_VALUE) { if (ret != CCS811_HW_ID_VALUE) {
dev_err(&client->dev, "hardware id doesn't match CCS81x\n"); dev_err(&client->dev, "hardware id doesn't match CCS81x\n");
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册