summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-01-09 16:19:44 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-01-10 15:55:16 +0100
commitb7d98beac5c1c91d14c3dfd287f511da8466a11d (patch)
treea0e39643216cbb9ac7ce1919c9ebba4632453729 /drivers/regulator
parentf490f2601ff2168cdf8425eb87ee7cbf7dc0c689 (diff)
downloadbarebox-b7d98beac5c1c91d14c3dfd287f511da8466a11d.tar.gz
regulator: scmi: rename struct scmi_regulator::device_node to of_node
The naming is different than the Linux driver and was only chosen for symmetry with device_d::device_node. Now that this is renamed to device:of_node, follow suite in the barebox driver. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230109151944.2070704-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/scmi-regulator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/scmi-regulator.c b/drivers/regulator/scmi-regulator.c
index 3e6fd3ec60..d45598f50f 100644
--- a/drivers/regulator/scmi-regulator.c
+++ b/drivers/regulator/scmi-regulator.c
@@ -44,7 +44,7 @@ struct scmi_regulator {
struct scmi_device *sdev;
struct scmi_protocol_handle *ph;
struct regulator_dev rdev;
- struct device_node *device_node;
+ struct device_node *of_node;
struct scmi_reg_desc sdesc;
};
@@ -232,7 +232,7 @@ static int scmi_regulator_common_init(struct scmi_regulator *sreg)
*/
if (vinfo->negative_volts_allowed) {
dev_warn(dev, "Negative voltages NOT supported...skip %s\n",
- sreg->device_node->full_name);
+ sreg->of_node->full_name);
return -EOPNOTSUPP;
}
@@ -278,7 +278,7 @@ static int process_scmi_regulator_of_node(struct scmi_device *sdev,
rinfo->sregv[dom]->ph = ph;
/* get hold of good nodes */
- rinfo->sregv[dom]->device_node = np;
+ rinfo->sregv[dom]->of_node = np;
dev_dbg(&sdev->dev,
"Found SCMI Regulator entry -- OF node [%d] -> %s\n",