hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/regulator/sky81452-regulator.c
....@@ -1,21 +1,9 @@
1
-/*
2
- * sky81452-regulator.c SKY81452 regulator driver
3
- *
4
- * Copyright 2014 Skyworks Solutions Inc.
5
- * Author : Gyungoh Yoo <jack.yoo@skyworksinc.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License version 2
9
- * as published by the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope that it will be useful, but
12
- * WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License along
17
- * with this program; if not, see <http://www.gnu.org/licenses/>.
18
- */
1
+// SPDX-License-Identifier: GPL-2.0
2
+//
3
+// sky81452-regulator.c SKY81452 regulator driver
4
+//
5
+// Copyright 2014 Skyworks Solutions Inc.
6
+// Author : Gyungoh Yoo <jack.yoo@skyworksinc.com>
197
208 #include <linux/module.h>
219 #include <linux/kernel.h>
....@@ -34,7 +22,7 @@
3422 #define SKY81452_LEN 0x40
3523 #define SKY81452_LOUT 0x1F
3624
37
-static struct regulator_ops sky81452_reg_ops = {
25
+static const struct regulator_ops sky81452_reg_ops = {
3826 .list_voltage = regulator_list_voltage_linear_range,
3927 .map_voltage = regulator_map_voltage_linear_range,
4028 .get_voltage_sel = regulator_get_voltage_sel_regmap,
....@@ -44,7 +32,7 @@
4432 .is_enabled = regulator_is_enabled_regmap,
4533 };
4634
47
-static const struct regulator_linear_range sky81452_reg_ranges[] = {
35
+static const struct linear_range sky81452_reg_ranges[] = {
4836 REGULATOR_LINEAR_RANGE(4500000, 0, 14, 250000),
4937 REGULATOR_LINEAR_RANGE(9000000, 15, 31, 1000000),
5038 };