diff options
author | Dan Robertson <dan@dlrobertson.com> | 2019-12-20 17:00:51 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-12-29 16:20:02 +0100 |
commit | 3cf7ded15e404655d4bcdcac76e0fe2247946d05 (patch) | |
tree | 023d1ac52dca3bc2bb583937dfcdf7f4a4af8c10 /drivers/iio/accel/bma400.h | |
parent | iio: accel: Add driver for the BMA400 (diff) | |
download | linux-3cf7ded15e404655d4bcdcac76e0fe2247946d05.tar.xz linux-3cf7ded15e404655d4bcdcac76e0fe2247946d05.zip |
iio: accel: bma400: basic regulator support
Add support for the VDD and VDDIO regulators using the regulator
framework.
Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/bma400.h')
-rw-r--r-- | drivers/iio/accel/bma400.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iio/accel/bma400.h b/drivers/iio/accel/bma400.h index 15c0e307d2c4..5ad10db9819f 100644 --- a/drivers/iio/accel/bma400.h +++ b/drivers/iio/accel/bma400.h @@ -86,6 +86,10 @@ #define BMA400_SCALE_MIN 38357 #define BMA400_SCALE_MAX 306864 +#define BMA400_NUM_REGULATORS 2 +#define BMA400_VDD_REGULATOR 0 +#define BMA400_VDDIO_REGULATOR 1 + extern const struct regmap_config bma400_regmap_config; int bma400_probe(struct device *dev, struct regmap *regmap, const char *name); |