summaryrefslogtreecommitdiff
path: root/include/linux/power
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2017-08-30 12:48:11 +0300
committerSebastian Reichel <sre@kernel.org>2017-08-30 18:31:51 +0300
commit66b6bef2c4e06f8c7a0030445766bf868110c5a1 (patch)
tree6d525b06268fbabd2d905b31e30d3ef40b701ac5 /include/linux/power
parent14e1a131b5ebc4ed7d166f08d1a669d4ce6d2760 (diff)
downloadlinux-66b6bef2c4e06f8c7a0030445766bf868110c5a1.tar.xz
power: supply: bq24190_charger: Export 5V boost converter as regulator
Register the 5V boost converter as a regulator named "usb_otg_vbus". This commit also adds support for bq24190_platform_data, through which non device-tree platforms can pass the regulator_init_data (containing mappings for the consumer amongst other things). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'include/linux/power')
-rw-r--r--include/linux/power/bq24190_charger.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/power/bq24190_charger.h b/include/linux/power/bq24190_charger.h
new file mode 100644
index 000000000000..45ce7f116a91
--- /dev/null
+++ b/include/linux/power/bq24190_charger.h
@@ -0,0 +1,18 @@
+/*
+ * Platform data for the TI bq24190 battery charger driver.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _BQ24190_CHARGER_H_
+#define _BQ24190_CHARGER_H_
+
+#include <linux/regulator/machine.h>
+
+struct bq24190_platform_data {
+ const struct regulator_init_data *regulator_init_data;
+};
+
+#endif