aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSebastian Reichel <[email protected]>2020-05-28 09:04:26 +0200
committerSebastian Reichel <[email protected]>2020-05-28 09:04:26 +0200
commit6c2fe5cae53a4b32276b71a72b003fb3ec83c7f9 (patch)
tree1d686ed8397fecd27c7ced47078945c2af3c5893 /include/linux
parentc3d80522237b71480109fc397975fe4146ed2550 (diff)
parent904ac71f4b0c1c26ec47ff597cb3d3c7d36e618d (diff)
Merge tag 'tags/ib-mfd-iio-power-v5.8' into psy-next
This merges the MP2629 battery charge management immutable branch between MFD, IIO and power-supply due for the v5.8 merge window into power-supply for-next branch. Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/mp2629.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/mfd/mp2629.h b/include/linux/mfd/mp2629.h
new file mode 100644
index 000000000000..89b706900b57
--- /dev/null
+++ b/include/linux/mfd/mp2629.h
@@ -0,0 +1,26 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2020 Monolithic Power Systems, Inc
+ */
+
+#ifndef __MP2629_H__
+#define __MP2629_H__
+
+#include <linux/device.h>
+#include <linux/regmap.h>
+
+struct mp2629_data {
+ struct device *dev;
+ struct regmap *regmap;
+};
+
+enum mp2629_adc_chan {
+ MP2629_BATT_VOLT,
+ MP2629_SYSTEM_VOLT,
+ MP2629_INPUT_VOLT,
+ MP2629_BATT_CURRENT,
+ MP2629_INPUT_CURRENT,
+ MP2629_ADC_CHAN_END
+};
+
+#endif