forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/regulator/tps65912-regulator.c
....@@ -1,7 +1,7 @@
11 /*
22 * Regulator driver for TI TPS65912x PMICs
33 *
4
- * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
4
+ * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/
55 * Andrew F. Davis <afd@ti.com>
66 *
77 * This program is free software; you can redistribute it and/or
....@@ -46,18 +46,18 @@
4646 .n_linear_ranges = ARRAY_SIZE(_lr), \
4747 }
4848
49
-static const struct regulator_linear_range tps65912_dcdc_ranges[] = {
49
+static const struct linear_range tps65912_dcdc_ranges[] = {
5050 REGULATOR_LINEAR_RANGE(500000, 0x0, 0x3f, 50000),
5151 };
5252
53
-static const struct regulator_linear_range tps65912_ldo_ranges[] = {
53
+static const struct linear_range tps65912_ldo_ranges[] = {
5454 REGULATOR_LINEAR_RANGE(800000, 0x0, 0x20, 25000),
5555 REGULATOR_LINEAR_RANGE(1650000, 0x21, 0x3c, 50000),
5656 REGULATOR_LINEAR_RANGE(3100000, 0x3d, 0x3f, 100000),
5757 };
5858
5959 /* Operations permitted on DCDCx */
60
-static struct regulator_ops tps65912_ops_dcdc = {
60
+static const struct regulator_ops tps65912_ops_dcdc = {
6161 .is_enabled = regulator_is_enabled_regmap,
6262 .enable = regulator_enable_regmap,
6363 .disable = regulator_disable_regmap,
....@@ -67,7 +67,7 @@
6767 };
6868
6969 /* Operations permitted on LDOx */
70
-static struct regulator_ops tps65912_ops_ldo = {
70
+static const struct regulator_ops tps65912_ops_ldo = {
7171 .is_enabled = regulator_is_enabled_regmap,
7272 .enable = regulator_enable_regmap,
7373 .disable = regulator_disable_regmap,