hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/regulator/wm831x-ldo.c
....@@ -1,15 +1,10 @@
1
-/*
2
- * wm831x-ldo.c -- LDO driver for the WM831x series
3
- *
4
- * Copyright 2009 Wolfson Microelectronics PLC.
5
- *
6
- * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
12
- */
1
+// SPDX-License-Identifier: GPL-2.0+
2
+//
3
+// wm831x-ldo.c -- LDO driver for the WM831x series
4
+//
5
+// Copyright 2009 Wolfson Microelectronics PLC.
6
+//
7
+// Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
138
149 #include <linux/module.h>
1510 #include <linux/moduleparam.h>
....@@ -62,7 +57,7 @@
6257 * General purpose LDOs
6358 */
6459
65
-static const struct regulator_linear_range wm831x_gp_ldo_ranges[] = {
60
+static const struct linear_range wm831x_gp_ldo_ranges[] = {
6661 REGULATOR_LINEAR_RANGE(900000, 0, 14, 50000),
6762 REGULATOR_LINEAR_RANGE(1700000, 15, 31, 100000),
6863 };
....@@ -315,7 +310,7 @@
315310 * Analogue LDOs
316311 */
317312
318
-static const struct regulator_linear_range wm831x_aldo_ranges[] = {
313
+static const struct linear_range wm831x_aldo_ranges[] = {
319314 REGULATOR_LINEAR_RANGE(1000000, 0, 12, 50000),
320315 REGULATOR_LINEAR_RANGE(1700000, 13, 31, 100000),
321316 };