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

iio: accel: adxl355: Replace custom definitions with generic from units.h

The units.h provides MEGA and TERA. Replace custom ones.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220202173723.8678-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
08f5fbf0 0bb77dce

+2 -3
+2 -3
drivers/iio/accel/adxl355_core.c
··· 20 20 #include <linux/mod_devicetable.h> 21 21 #include <linux/of_irq.h> 22 22 #include <linux/regmap.h> 23 + #include <linux/units.h> 24 + 23 25 #include <asm/unaligned.h> 24 26 25 27 #include "adxl355.h" ··· 61 59 #define ADXL355_DEVID_MST_VAL 0x1D 62 60 #define ADXL355_PARTID_VAL 0xED 63 61 #define ADXL355_RESET_CODE 0x52 64 - 65 - #define MEGA 1000000UL 66 - #define TERA 1000000000000ULL 67 62 68 63 static const struct regmap_range adxl355_read_reg_range[] = { 69 64 regmap_reg_range(ADXL355_DEVID_AD_REG, ADXL355_FIFO_DATA_REG),