hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/regulator/tps65086-regulator.c
....@@ -1,5 +1,5 @@
11 /*
2
- * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
2
+ * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/
33 *
44 * Author: Andrew F. Davis <afd@ti.com>
55 *
....@@ -71,23 +71,23 @@
7171 unsigned int decay_mask;
7272 };
7373
74
-static const struct regulator_linear_range tps65086_10mv_ranges[] = {
74
+static const struct linear_range tps65086_10mv_ranges[] = {
7575 REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0),
7676 REGULATOR_LINEAR_RANGE(410000, 0x1, 0x7F, 10000),
7777 };
7878
79
-static const struct regulator_linear_range tps65086_buck126_25mv_ranges[] = {
79
+static const struct linear_range tps65086_buck126_25mv_ranges[] = {
8080 REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0),
8181 REGULATOR_LINEAR_RANGE(1000000, 0x1, 0x18, 0),
8282 REGULATOR_LINEAR_RANGE(1025000, 0x19, 0x7F, 25000),
8383 };
8484
85
-static const struct regulator_linear_range tps65086_buck345_25mv_ranges[] = {
85
+static const struct linear_range tps65086_buck345_25mv_ranges[] = {
8686 REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0),
8787 REGULATOR_LINEAR_RANGE(425000, 0x1, 0x7F, 25000),
8888 };
8989
90
-static const struct regulator_linear_range tps65086_ldoa1_ranges[] = {
90
+static const struct linear_range tps65086_ldoa1_ranges[] = {
9191 REGULATOR_LINEAR_RANGE(1350000, 0x0, 0x0, 0),
9292 REGULATOR_LINEAR_RANGE(1500000, 0x1, 0x7, 100000),
9393 REGULATOR_LINEAR_RANGE(2300000, 0x8, 0xB, 100000),
....@@ -95,13 +95,13 @@
9595 REGULATOR_LINEAR_RANGE(3300000, 0xE, 0xE, 0),
9696 };
9797
98
-static const struct regulator_linear_range tps65086_ldoa23_ranges[] = {
98
+static const struct linear_range tps65086_ldoa23_ranges[] = {
9999 REGULATOR_LINEAR_RANGE(700000, 0x0, 0xD, 50000),
100100 REGULATOR_LINEAR_RANGE(1400000, 0xE, 0xF, 100000),
101101 };
102102
103103 /* Operations permitted on regulators */
104
-static struct regulator_ops reg_ops = {
104
+static const struct regulator_ops reg_ops = {
105105 .enable = regulator_enable_regmap,
106106 .disable = regulator_disable_regmap,
107107 .is_enabled = regulator_is_enabled_regmap,
....@@ -112,7 +112,7 @@
112112 };
113113
114114 /* Operations permitted on load switches */
115
-static struct regulator_ops switch_ops = {
115
+static const struct regulator_ops switch_ops = {
116116 .enable = regulator_enable_regmap,
117117 .disable = regulator_disable_regmap,
118118 .is_enabled = regulator_is_enabled_regmap,