forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/regulator/stw481x-vmmc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Regulator driver for STw4810/STw4811 VMMC regulator.
34 *
....@@ -5,8 +6,6 @@
56 * Written on behalf of Linaro for ST-Ericsson
67 *
78 * Author: Linus Walleij <linus.walleij@linaro.org>
8
- *
9
- * License terms: GNU General Public License (GPL) version 2
109 */
1110
1211 #include <linux/err.h>
....@@ -28,7 +27,7 @@
2827 3300000,
2928 };
3029
31
-static struct regulator_ops stw481x_vmmc_ops = {
30
+static const struct regulator_ops stw481x_vmmc_ops = {
3231 .list_voltage = regulator_list_voltage_table,
3332 .enable = regulator_enable_regmap,
3433 .disable = regulator_disable_regmap,
....@@ -37,7 +36,7 @@
3736 .set_voltage_sel = regulator_set_voltage_sel_regmap,
3837 };
3938
40
-static struct regulator_desc vmmc_regulator = {
39
+static const struct regulator_desc vmmc_regulator = {
4140 .name = "VMMC",
4241 .id = 0,
4342 .ops = &stw481x_vmmc_ops,