hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/regulator/mc13xxx-regulator-core.c
....@@ -99,7 +99,7 @@
9999 return rdev->desc->volt_table[val];
100100 }
101101
102
-struct regulator_ops mc13xxx_regulator_ops = {
102
+const struct regulator_ops mc13xxx_regulator_ops = {
103103 .enable = mc13xxx_regulator_enable,
104104 .disable = mc13xxx_regulator_disable,
105105 .is_enabled = mc13xxx_regulator_is_enabled,
....@@ -127,7 +127,7 @@
127127 }
128128 EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_set_voltage);
129129
130
-struct regulator_ops mc13xxx_fixed_regulator_ops = {
130
+const struct regulator_ops mc13xxx_fixed_regulator_ops = {
131131 .enable = mc13xxx_regulator_enable,
132132 .disable = mc13xxx_regulator_disable,
133133 .is_enabled = mc13xxx_regulator_is_enabled,
....@@ -186,7 +186,7 @@
186186 for (i = 0; i < num_regulators; i++) {
187187 if (!regulators[i].desc.name)
188188 continue;
189
- if (!of_node_cmp(child->name,
189
+ if (of_node_name_eq(child,
190190 regulators[i].desc.name)) {
191191 p->id = i;
192192 p->init_data = of_get_regulator_init_data(
....@@ -203,7 +203,7 @@
203203
204204 if (!found)
205205 dev_warn(&pdev->dev,
206
- "Unknown regulator: %s\n", child->name);
206
+ "Unknown regulator: %pOFn\n", child);
207207 }
208208 of_node_put(parent);
209209