aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2016-03-17 15:05:07 +0100
committerMark Brown <broonie@kernel.org>2016-03-28 12:34:20 -0700
commit005e46857ed598bcf76035366cd2841e3b7f8c54 (patch)
treebf70dfe38230137d5d1c6af3d2da34abf4fcf253 /include/linux/regulator
parentregulator: act8865: Remove "too many regulators" error handler (diff)
downloadlinux-dev-005e46857ed598bcf76035366cd2841e3b7f8c54.tar.xz
linux-dev-005e46857ed598bcf76035366cd2841e3b7f8c54.zip
regulator: act8865: Pass of_node via act8865_regulator_data
This makes the code easier to read and it avoids a dynamic memory allocation. Signed-off-by: Maarten ter Huurne <maarten@treewalker.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/act8865.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/act8865.h b/include/linux/regulator/act8865.h
index 2eb386017fa5..113d861a1e4c 100644
--- a/include/linux/regulator/act8865.h
+++ b/include/linux/regulator/act8865.h
@@ -69,11 +69,13 @@ enum {
* @id: regulator id
* @name: regulator name
* @init_data: regulator init data
+ * @of_node: device tree node (optional)
*/
struct act8865_regulator_data {
int id;
const char *name;
struct regulator_init_data *init_data;
+ struct device_node *of_node;
};
/**