| .. | .. |
|---|
| 1 | 1 | /* |
|---|
| 2 | 2 | * Regulator driver for TI TPS65912x PMICs |
|---|
| 3 | 3 | * |
|---|
| 4 | | - * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ |
|---|
| 4 | + * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/ |
|---|
| 5 | 5 | * Andrew F. Davis <afd@ti.com> |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * This program is free software; you can redistribute it and/or |
|---|
| .. | .. |
|---|
| 46 | 46 | .n_linear_ranges = ARRAY_SIZE(_lr), \ |
|---|
| 47 | 47 | } |
|---|
| 48 | 48 | |
|---|
| 49 | | -static const struct regulator_linear_range tps65912_dcdc_ranges[] = { |
|---|
| 49 | +static const struct linear_range tps65912_dcdc_ranges[] = { |
|---|
| 50 | 50 | REGULATOR_LINEAR_RANGE(500000, 0x0, 0x3f, 50000), |
|---|
| 51 | 51 | }; |
|---|
| 52 | 52 | |
|---|
| 53 | | -static const struct regulator_linear_range tps65912_ldo_ranges[] = { |
|---|
| 53 | +static const struct linear_range tps65912_ldo_ranges[] = { |
|---|
| 54 | 54 | REGULATOR_LINEAR_RANGE(800000, 0x0, 0x20, 25000), |
|---|
| 55 | 55 | REGULATOR_LINEAR_RANGE(1650000, 0x21, 0x3c, 50000), |
|---|
| 56 | 56 | REGULATOR_LINEAR_RANGE(3100000, 0x3d, 0x3f, 100000), |
|---|
| 57 | 57 | }; |
|---|
| 58 | 58 | |
|---|
| 59 | 59 | /* Operations permitted on DCDCx */ |
|---|
| 60 | | -static struct regulator_ops tps65912_ops_dcdc = { |
|---|
| 60 | +static const struct regulator_ops tps65912_ops_dcdc = { |
|---|
| 61 | 61 | .is_enabled = regulator_is_enabled_regmap, |
|---|
| 62 | 62 | .enable = regulator_enable_regmap, |
|---|
| 63 | 63 | .disable = regulator_disable_regmap, |
|---|
| .. | .. |
|---|
| 67 | 67 | }; |
|---|
| 68 | 68 | |
|---|
| 69 | 69 | /* Operations permitted on LDOx */ |
|---|
| 70 | | -static struct regulator_ops tps65912_ops_ldo = { |
|---|
| 70 | +static const struct regulator_ops tps65912_ops_ldo = { |
|---|
| 71 | 71 | .is_enabled = regulator_is_enabled_regmap, |
|---|
| 72 | 72 | .enable = regulator_enable_regmap, |
|---|
| 73 | 73 | .disable = regulator_disable_regmap, |
|---|