summaryrefslogtreecommitdiff
path: root/include/linux/regulator/act8865.h
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2016-03-17 17:05:07 +0300
committerMark Brown <broonie@kernel.org>2016-03-28 22:34:20 +0300
commit005e46857ed598bcf76035366cd2841e3b7f8c54 (patch)
treebf70dfe38230137d5d1c6af3d2da34abf4fcf253 /include/linux/regulator/act8865.h
parente6e79fd9cee682b137779d2da3b379251927d99f (diff)
downloadlinux-005e46857ed598bcf76035366cd2841e3b7f8c54.tar.xz
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/act8865.h')
-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;
};
/**