mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 07:51:31 -04:00
iio: accel: adxl380: fix typo in PART_ID register macro
Fix a typo in the ADXL380_PART_ID_REG macro name where it was incorrectly defined as ADLX380_PART_ID_REG. Also update its usage in adxl380_setup(). Signed-off-by: Nikhil Gautam <nikhilgtr@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
af980a79bf
commit
2f5bdca14c
@@ -31,7 +31,7 @@
|
||||
#define ADXL319_ID_VAL 382
|
||||
|
||||
#define ADXL380_DEVID_AD_REG 0x00
|
||||
#define ADLX380_PART_ID_REG 0x02
|
||||
#define ADXL380_PART_ID_REG 0x02
|
||||
|
||||
#define ADXL380_X_DATA_H_REG 0x15
|
||||
#define ADXL380_Y_DATA_H_REG 0x17
|
||||
@@ -1878,7 +1878,7 @@ static int adxl380_setup(struct iio_dev *indio_dev)
|
||||
if (reg_val != ADXL380_DEVID_AD_VAL)
|
||||
dev_warn(st->dev, "Unknown chip id %x\n", reg_val);
|
||||
|
||||
ret = regmap_bulk_read(st->regmap, ADLX380_PART_ID_REG,
|
||||
ret = regmap_bulk_read(st->regmap, ADXL380_PART_ID_REG,
|
||||
&st->transf_buf, 2);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user