.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Regulator driver for TI TPS6586x |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * Based on da903x |
---|
8 | 9 | * Copyright (C) 2006-2008 Marvell International Ltd. |
---|
9 | 10 | * 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. |
---|
14 | 11 | */ |
---|
15 | 12 | |
---|
16 | 13 | #include <linux/kernel.h> |
---|
.. | .. |
---|
63 | 60 | int enable_reg[2]; |
---|
64 | 61 | }; |
---|
65 | 62 | |
---|
66 | | -static struct regulator_ops tps6586x_rw_regulator_ops = { |
---|
| 63 | +static const struct regulator_ops tps6586x_rw_regulator_ops = { |
---|
67 | 64 | .list_voltage = regulator_list_voltage_table, |
---|
68 | 65 | .map_voltage = regulator_map_voltage_ascend, |
---|
69 | 66 | .get_voltage_sel = regulator_get_voltage_sel_regmap, |
---|
.. | .. |
---|
74 | 71 | .disable = regulator_disable_regmap, |
---|
75 | 72 | }; |
---|
76 | 73 | |
---|
77 | | -static struct regulator_ops tps6586x_rw_linear_regulator_ops = { |
---|
| 74 | +static const struct regulator_ops tps6586x_rw_linear_regulator_ops = { |
---|
78 | 75 | .list_voltage = regulator_list_voltage_linear, |
---|
79 | 76 | .get_voltage_sel = regulator_get_voltage_sel_regmap, |
---|
80 | 77 | .set_voltage_sel = regulator_set_voltage_sel_regmap, |
---|
.. | .. |
---|
84 | 81 | .disable = regulator_disable_regmap, |
---|
85 | 82 | }; |
---|
86 | 83 | |
---|
87 | | -static struct regulator_ops tps6586x_ro_regulator_ops = { |
---|
| 84 | +static const struct regulator_ops tps6586x_ro_regulator_ops = { |
---|
88 | 85 | .list_voltage = regulator_list_voltage_table, |
---|
89 | 86 | .map_voltage = regulator_map_voltage_ascend, |
---|
90 | 87 | .get_voltage_sel = regulator_get_voltage_sel_regmap, |
---|
.. | .. |
---|
94 | 91 | .disable = regulator_disable_regmap, |
---|
95 | 92 | }; |
---|
96 | 93 | |
---|
97 | | -static struct regulator_ops tps6586x_sys_regulator_ops = { |
---|
| 94 | +static const struct regulator_ops tps6586x_sys_regulator_ops = { |
---|
98 | 95 | }; |
---|
99 | 96 | |
---|
100 | 97 | static const unsigned int tps6586x_ldo0_voltages[] = { |
---|