| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * dummy.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2010 Wolfson Microelectronics PLC. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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. |
|---|
| 12 | 8 | * |
|---|
| 13 | 9 | * This is useful for systems with mixed controllable and |
|---|
| 14 | 10 | * non-controllable regulators, as well as for allowing testing on |
|---|
| .. | .. |
|---|
| 25 | 21 | |
|---|
| 26 | 22 | struct regulator_dev *dummy_regulator_rdev; |
|---|
| 27 | 23 | |
|---|
| 28 | | -static struct regulator_init_data dummy_initdata = { |
|---|
| 24 | +static const struct regulator_init_data dummy_initdata = { |
|---|
| 29 | 25 | .constraints = { |
|---|
| 30 | 26 | .always_on = 1, |
|---|
| 31 | 27 | }, |
|---|
| 32 | 28 | }; |
|---|
| 33 | 29 | |
|---|
| 34 | | -static struct regulator_ops dummy_ops; |
|---|
| 30 | +static const struct regulator_ops dummy_ops; |
|---|
| 35 | 31 | |
|---|
| 36 | 32 | static const struct regulator_desc dummy_desc = { |
|---|
| 37 | 33 | .name = "regulator-dummy", |
|---|