hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/regulator/tps6586x-regulator.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Regulator driver for TI TPS6586x
34 *
....@@ -7,10 +8,6 @@
78 * Based on da903x
89 * Copyright (C) 2006-2008 Marvell International Ltd.
910 * Copyright (C) 2008 Compulab Ltd.
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License version 2 as
13
- * published by the Free Software Foundation.
1411 */
1512
1613 #include <linux/kernel.h>
....@@ -63,7 +60,7 @@
6360 int enable_reg[2];
6461 };
6562
66
-static struct regulator_ops tps6586x_rw_regulator_ops = {
63
+static const struct regulator_ops tps6586x_rw_regulator_ops = {
6764 .list_voltage = regulator_list_voltage_table,
6865 .map_voltage = regulator_map_voltage_ascend,
6966 .get_voltage_sel = regulator_get_voltage_sel_regmap,
....@@ -74,7 +71,7 @@
7471 .disable = regulator_disable_regmap,
7572 };
7673
77
-static struct regulator_ops tps6586x_rw_linear_regulator_ops = {
74
+static const struct regulator_ops tps6586x_rw_linear_regulator_ops = {
7875 .list_voltage = regulator_list_voltage_linear,
7976 .get_voltage_sel = regulator_get_voltage_sel_regmap,
8077 .set_voltage_sel = regulator_set_voltage_sel_regmap,
....@@ -84,7 +81,7 @@
8481 .disable = regulator_disable_regmap,
8582 };
8683
87
-static struct regulator_ops tps6586x_ro_regulator_ops = {
84
+static const struct regulator_ops tps6586x_ro_regulator_ops = {
8885 .list_voltage = regulator_list_voltage_table,
8986 .map_voltage = regulator_map_voltage_ascend,
9087 .get_voltage_sel = regulator_get_voltage_sel_regmap,
....@@ -94,7 +91,7 @@
9491 .disable = regulator_disable_regmap,
9592 };
9693
97
-static struct regulator_ops tps6586x_sys_regulator_ops = {
94
+static const struct regulator_ops tps6586x_sys_regulator_ops = {
9895 };
9996
10097 static const unsigned int tps6586x_ldo0_voltages[] = {