forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
kernel/drivers/regulator/dummy.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * dummy.c
34 *
45 * Copyright 2010 Wolfson Microelectronics PLC.
56 *
67 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License as
10
- * published by the Free Software Foundation; either version 2 of the
11
- * License, or (at your option) any later version.
128 *
139 * This is useful for systems with mixed controllable and
1410 * non-controllable regulators, as well as for allowing testing on
....@@ -25,13 +21,13 @@
2521
2622 struct regulator_dev *dummy_regulator_rdev;
2723
28
-static struct regulator_init_data dummy_initdata = {
24
+static const struct regulator_init_data dummy_initdata = {
2925 .constraints = {
3026 .always_on = 1,
3127 },
3228 };
3329
34
-static struct regulator_ops dummy_ops;
30
+static const struct regulator_ops dummy_ops;
3531
3632 static const struct regulator_desc dummy_desc = {
3733 .name = "regulator-dummy",