diff options
author | Maarten ter Huurne <maarten@treewalker.org> | 2016-03-17 15:05:07 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-28 12:34:20 -0700 |
commit | 005e46857ed598bcf76035366cd2841e3b7f8c54 (patch) | |
tree | bf70dfe38230137d5d1c6af3d2da34abf4fcf253 /include/linux/regulator | |
parent | e6e79fd9cee682b137779d2da3b379251927d99f (diff) | |
download | talos-obmc-linux-005e46857ed598bcf76035366cd2841e3b7f8c54.tar.gz talos-obmc-linux-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.h | 2 |
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; }; /** |