| .. | .. |
|---|
| 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> |
|---|
| 13 | 8 | |
|---|
| 14 | 9 | #include <linux/module.h> |
|---|
| 15 | 10 | #include <linux/moduleparam.h> |
|---|
| .. | .. |
|---|
| 62 | 57 | * General purpose LDOs |
|---|
| 63 | 58 | */ |
|---|
| 64 | 59 | |
|---|
| 65 | | -static const struct regulator_linear_range wm831x_gp_ldo_ranges[] = { |
|---|
| 60 | +static const struct linear_range wm831x_gp_ldo_ranges[] = { |
|---|
| 66 | 61 | REGULATOR_LINEAR_RANGE(900000, 0, 14, 50000), |
|---|
| 67 | 62 | REGULATOR_LINEAR_RANGE(1700000, 15, 31, 100000), |
|---|
| 68 | 63 | }; |
|---|
| .. | .. |
|---|
| 315 | 310 | * Analogue LDOs |
|---|
| 316 | 311 | */ |
|---|
| 317 | 312 | |
|---|
| 318 | | -static const struct regulator_linear_range wm831x_aldo_ranges[] = { |
|---|
| 313 | +static const struct linear_range wm831x_aldo_ranges[] = { |
|---|
| 319 | 314 | REGULATOR_LINEAR_RANGE(1000000, 0, 12, 50000), |
|---|
| 320 | 315 | REGULATOR_LINEAR_RANGE(1700000, 13, 31, 100000), |
|---|
| 321 | 316 | }; |
|---|