forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/regulator/mt6323-regulator.c
....@@ -1,11 +1,7 @@
1
-/*
2
- * Copyright (c) 2016 MediaTek Inc.
3
- * Author: Chen Zhong <chen.zhong@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
- */
1
+// SPDX-License-Identifier: GPL-2.0
2
+//
3
+// Copyright (c) 2016 MediaTek Inc.
4
+// Author: Chen Zhong <chen.zhong@mediatek.com>
95
106 #include <linux/module.h>
117 #include <linux/of.h>
....@@ -106,55 +102,55 @@
106102 .modeset_mask = _modeset_mask, \
107103 }
108104
109
-static const struct regulator_linear_range buck_volt_range1[] = {
105
+static const struct linear_range buck_volt_range1[] = {
110106 REGULATOR_LINEAR_RANGE(700000, 0, 0x7f, 6250),
111107 };
112108
113
-static const struct regulator_linear_range buck_volt_range2[] = {
109
+static const struct linear_range buck_volt_range2[] = {
114110 REGULATOR_LINEAR_RANGE(1400000, 0, 0x7f, 12500),
115111 };
116112
117
-static const struct regulator_linear_range buck_volt_range3[] = {
113
+static const struct linear_range buck_volt_range3[] = {
118114 REGULATOR_LINEAR_RANGE(500000, 0, 0x3f, 50000),
119115 };
120116
121
-static const u32 ldo_volt_table1[] = {
117
+static const unsigned int ldo_volt_table1[] = {
122118 3300000, 3400000, 3500000, 3600000,
123119 };
124120
125
-static const u32 ldo_volt_table2[] = {
121
+static const unsigned int ldo_volt_table2[] = {
126122 1500000, 1800000, 2500000, 2800000,
127123 };
128124
129
-static const u32 ldo_volt_table3[] = {
125
+static const unsigned int ldo_volt_table3[] = {
130126 1800000, 3300000,
131127 };
132128
133
-static const u32 ldo_volt_table4[] = {
129
+static const unsigned int ldo_volt_table4[] = {
134130 3000000, 3300000,
135131 };
136132
137
-static const u32 ldo_volt_table5[] = {
133
+static const unsigned int ldo_volt_table5[] = {
138134 1200000, 1300000, 1500000, 1800000, 2000000, 2800000, 3000000, 3300000,
139135 };
140136
141
-static const u32 ldo_volt_table6[] = {
137
+static const unsigned int ldo_volt_table6[] = {
142138 1200000, 1300000, 1500000, 1800000, 2500000, 2800000, 3000000, 2000000,
143139 };
144140
145
-static const u32 ldo_volt_table7[] = {
141
+static const unsigned int ldo_volt_table7[] = {
146142 1200000, 1300000, 1500000, 1800000,
147143 };
148144
149
-static const u32 ldo_volt_table8[] = {
145
+static const unsigned int ldo_volt_table8[] = {
150146 1800000, 3000000,
151147 };
152148
153
-static const u32 ldo_volt_table9[] = {
149
+static const unsigned int ldo_volt_table9[] = {
154150 1200000, 1350000, 1500000, 1800000,
155151 };
156152
157
-static const u32 ldo_volt_table10[] = {
153
+static const unsigned int ldo_volt_table10[] = {
158154 1200000, 1300000, 1500000, 1800000,
159155 };
160156