| .. | .. |
|---|
| 1 | 1 | /* |
|---|
| 2 | | - * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ |
|---|
| 2 | + * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/ |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Author: Andrew F. Davis <afd@ti.com> |
|---|
| 5 | 5 | * |
|---|
| .. | .. |
|---|
| 71 | 71 | unsigned int decay_mask; |
|---|
| 72 | 72 | }; |
|---|
| 73 | 73 | |
|---|
| 74 | | -static const struct regulator_linear_range tps65086_10mv_ranges[] = { |
|---|
| 74 | +static const struct linear_range tps65086_10mv_ranges[] = { |
|---|
| 75 | 75 | REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0), |
|---|
| 76 | 76 | REGULATOR_LINEAR_RANGE(410000, 0x1, 0x7F, 10000), |
|---|
| 77 | 77 | }; |
|---|
| 78 | 78 | |
|---|
| 79 | | -static const struct regulator_linear_range tps65086_buck126_25mv_ranges[] = { |
|---|
| 79 | +static const struct linear_range tps65086_buck126_25mv_ranges[] = { |
|---|
| 80 | 80 | REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0), |
|---|
| 81 | 81 | REGULATOR_LINEAR_RANGE(1000000, 0x1, 0x18, 0), |
|---|
| 82 | 82 | REGULATOR_LINEAR_RANGE(1025000, 0x19, 0x7F, 25000), |
|---|
| 83 | 83 | }; |
|---|
| 84 | 84 | |
|---|
| 85 | | -static const struct regulator_linear_range tps65086_buck345_25mv_ranges[] = { |
|---|
| 85 | +static const struct linear_range tps65086_buck345_25mv_ranges[] = { |
|---|
| 86 | 86 | REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0), |
|---|
| 87 | 87 | REGULATOR_LINEAR_RANGE(425000, 0x1, 0x7F, 25000), |
|---|
| 88 | 88 | }; |
|---|
| 89 | 89 | |
|---|
| 90 | | -static const struct regulator_linear_range tps65086_ldoa1_ranges[] = { |
|---|
| 90 | +static const struct linear_range tps65086_ldoa1_ranges[] = { |
|---|
| 91 | 91 | REGULATOR_LINEAR_RANGE(1350000, 0x0, 0x0, 0), |
|---|
| 92 | 92 | REGULATOR_LINEAR_RANGE(1500000, 0x1, 0x7, 100000), |
|---|
| 93 | 93 | REGULATOR_LINEAR_RANGE(2300000, 0x8, 0xB, 100000), |
|---|
| .. | .. |
|---|
| 95 | 95 | REGULATOR_LINEAR_RANGE(3300000, 0xE, 0xE, 0), |
|---|
| 96 | 96 | }; |
|---|
| 97 | 97 | |
|---|
| 98 | | -static const struct regulator_linear_range tps65086_ldoa23_ranges[] = { |
|---|
| 98 | +static const struct linear_range tps65086_ldoa23_ranges[] = { |
|---|
| 99 | 99 | REGULATOR_LINEAR_RANGE(700000, 0x0, 0xD, 50000), |
|---|
| 100 | 100 | REGULATOR_LINEAR_RANGE(1400000, 0xE, 0xF, 100000), |
|---|
| 101 | 101 | }; |
|---|
| 102 | 102 | |
|---|
| 103 | 103 | /* Operations permitted on regulators */ |
|---|
| 104 | | -static struct regulator_ops reg_ops = { |
|---|
| 104 | +static const struct regulator_ops reg_ops = { |
|---|
| 105 | 105 | .enable = regulator_enable_regmap, |
|---|
| 106 | 106 | .disable = regulator_disable_regmap, |
|---|
| 107 | 107 | .is_enabled = regulator_is_enabled_regmap, |
|---|
| .. | .. |
|---|
| 112 | 112 | }; |
|---|
| 113 | 113 | |
|---|
| 114 | 114 | /* Operations permitted on load switches */ |
|---|
| 115 | | -static struct regulator_ops switch_ops = { |
|---|
| 115 | +static const struct regulator_ops switch_ops = { |
|---|
| 116 | 116 | .enable = regulator_enable_regmap, |
|---|
| 117 | 117 | .disable = regulator_disable_regmap, |
|---|
| 118 | 118 | .is_enabled = regulator_is_enabled_regmap, |
|---|