summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/bma400.h
diff options
context:
space:
mode:
authorDan Robertson <dan@dlrobertson.com>2019-12-20 19:00:51 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-12-29 18:20:02 +0300
commit3cf7ded15e404655d4bcdcac76e0fe2247946d05 (patch)
tree023d1ac52dca3bc2bb583937dfcdf7f4a4af8c10 /drivers/iio/accel/bma400.h
parent465c811f1f201a7554a95cf003bc06a239606e9b (diff)
downloadlinux-3cf7ded15e404655d4bcdcac76e0fe2247946d05.tar.xz
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.h4
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);