| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Regulator driver for STw4810/STw4811 VMMC regulator. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Written on behalf of Linaro for ST-Ericsson |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Author: Linus Walleij <linus.walleij@linaro.org> |
|---|
| 8 | | - * |
|---|
| 9 | | - * License terms: GNU General Public License (GPL) version 2 |
|---|
| 10 | 9 | */ |
|---|
| 11 | 10 | |
|---|
| 12 | 11 | #include <linux/err.h> |
|---|
| .. | .. |
|---|
| 28 | 27 | 3300000, |
|---|
| 29 | 28 | }; |
|---|
| 30 | 29 | |
|---|
| 31 | | -static struct regulator_ops stw481x_vmmc_ops = { |
|---|
| 30 | +static const struct regulator_ops stw481x_vmmc_ops = { |
|---|
| 32 | 31 | .list_voltage = regulator_list_voltage_table, |
|---|
| 33 | 32 | .enable = regulator_enable_regmap, |
|---|
| 34 | 33 | .disable = regulator_disable_regmap, |
|---|
| .. | .. |
|---|
| 37 | 36 | .set_voltage_sel = regulator_set_voltage_sel_regmap, |
|---|
| 38 | 37 | }; |
|---|
| 39 | 38 | |
|---|
| 40 | | -static struct regulator_desc vmmc_regulator = { |
|---|
| 39 | +static const struct regulator_desc vmmc_regulator = { |
|---|
| 41 | 40 | .name = "VMMC", |
|---|
| 42 | 41 | .id = 0, |
|---|
| 43 | 42 | .ops = &stw481x_vmmc_ops, |
|---|