hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/regulator/mt6380-regulator.c
....@@ -1,16 +1,7 @@
1
-/*
2
- * Copyright (c) 2017 MediaTek Inc.
3
- * Author: Chenglin Xu <chenglin.xu@mediatek.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- */
1
+// SPDX-License-Identifier: GPL-2.0
2
+//
3
+// Copyright (c) 2017 MediaTek Inc.
4
+// Author: Chenglin Xu <chenglin.xu@mediatek.com>
145
156 #include <linux/module.h>
167 #include <linux/of.h>
....@@ -161,31 +152,31 @@
161152 .modeset_mask = _modeset_mask, \
162153 }
163154
164
-static const struct regulator_linear_range buck_volt_range1[] = {
155
+static const struct linear_range buck_volt_range1[] = {
165156 REGULATOR_LINEAR_RANGE(600000, 0, 0xfe, 6250),
166157 };
167158
168
-static const struct regulator_linear_range buck_volt_range2[] = {
159
+static const struct linear_range buck_volt_range2[] = {
169160 REGULATOR_LINEAR_RANGE(600000, 0, 0xfe, 6250),
170161 };
171162
172
-static const struct regulator_linear_range buck_volt_range3[] = {
163
+static const struct linear_range buck_volt_range3[] = {
173164 REGULATOR_LINEAR_RANGE(1200000, 0, 0x3c, 25000),
174165 };
175166
176
-static const u32 ldo_volt_table1[] = {
167
+static const unsigned int ldo_volt_table1[] = {
177168 1400000, 1350000, 1300000, 1250000, 1200000, 1150000, 1100000, 1050000,
178169 };
179170
180
-static const u32 ldo_volt_table2[] = {
171
+static const unsigned int ldo_volt_table2[] = {
181172 2200000, 3300000,
182173 };
183174
184
-static const u32 ldo_volt_table3[] = {
175
+static const unsigned int ldo_volt_table3[] = {
185176 1240000, 1390000, 1540000, 1840000,
186177 };
187178
188
-static const u32 ldo_volt_table4[] = {
179
+static const unsigned int ldo_volt_table4[] = {
189180 2200000, 3300000,
190181 };
191182