| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Regulator driver for the Richtek RT5033 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2014 Samsung Electronics, Co., Ltd. |
|---|
| 5 | 6 | * Author: Beomho Seo <beomho.seo@samsung.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 9 | | - * published bythe Free Software Foundation. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 16 | 13 | #include <linux/mfd/rt5033-private.h> |
|---|
| 17 | 14 | #include <linux/regulator/of_regulator.h> |
|---|
| 18 | 15 | |
|---|
| 19 | | -static struct regulator_ops rt5033_safe_ldo_ops = { |
|---|
| 16 | +static const struct regulator_ops rt5033_safe_ldo_ops = { |
|---|
| 20 | 17 | .is_enabled = regulator_is_enabled_regmap, |
|---|
| 21 | 18 | .enable = regulator_enable_regmap, |
|---|
| 22 | 19 | .disable = regulator_disable_regmap, |
|---|
| 23 | 20 | .list_voltage = regulator_list_voltage_linear, |
|---|
| 24 | 21 | }; |
|---|
| 25 | 22 | |
|---|
| 26 | | -static struct regulator_ops rt5033_buck_ops = { |
|---|
| 23 | +static const struct regulator_ops rt5033_buck_ops = { |
|---|
| 27 | 24 | .is_enabled = regulator_is_enabled_regmap, |
|---|
| 28 | 25 | .enable = regulator_enable_regmap, |
|---|
| 29 | 26 | .disable = regulator_disable_regmap, |
|---|