Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Nikhil Gautam and committed by
Jonathan Cameron
2f5bdca1 af980a79

+2 -2
+2 -2
drivers/iio/accel/adxl380.c
··· 31 31 #define ADXL319_ID_VAL 382 32 32 33 33 #define ADXL380_DEVID_AD_REG 0x00 34 - #define ADLX380_PART_ID_REG 0x02 34 + #define ADXL380_PART_ID_REG 0x02 35 35 36 36 #define ADXL380_X_DATA_H_REG 0x15 37 37 #define ADXL380_Y_DATA_H_REG 0x17 ··· 1878 1878 if (reg_val != ADXL380_DEVID_AD_VAL) 1879 1879 dev_warn(st->dev, "Unknown chip id %x\n", reg_val); 1880 1880 1881 - ret = regmap_bulk_read(st->regmap, ADLX380_PART_ID_REG, 1881 + ret = regmap_bulk_read(st->regmap, ADXL380_PART_ID_REG, 1882 1882 &st->transf_buf, 2); 1883 1883 if (ret) 1884 1884 return ret;