forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
kernel/drivers/regulator/rt5033-regulator.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Regulator driver for the Richtek RT5033
34 *
45 * Copyright (C) 2014 Samsung Electronics, Co., Ltd.
56 * 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.
107 */
118
129 #include <linux/module.h>
....@@ -16,14 +13,14 @@
1613 #include <linux/mfd/rt5033-private.h>
1714 #include <linux/regulator/of_regulator.h>
1815
19
-static struct regulator_ops rt5033_safe_ldo_ops = {
16
+static const struct regulator_ops rt5033_safe_ldo_ops = {
2017 .is_enabled = regulator_is_enabled_regmap,
2118 .enable = regulator_enable_regmap,
2219 .disable = regulator_disable_regmap,
2320 .list_voltage = regulator_list_voltage_linear,
2421 };
2522
26
-static struct regulator_ops rt5033_buck_ops = {
23
+static const struct regulator_ops rt5033_buck_ops = {
2724 .is_enabled = regulator_is_enabled_regmap,
2825 .enable = regulator_enable_regmap,
2926 .disable = regulator_disable_regmap,