| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Regulator driver for National Semiconductors LP3972 PMIC chip |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Based on lp3971.c |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #include <linux/bug.h> |
|---|
| .. | .. |
|---|
| 305 | 301 | return ret; |
|---|
| 306 | 302 | } |
|---|
| 307 | 303 | |
|---|
| 308 | | -static struct regulator_ops lp3972_ldo_ops = { |
|---|
| 304 | +static const struct regulator_ops lp3972_ldo_ops = { |
|---|
| 309 | 305 | .list_voltage = regulator_list_voltage_table, |
|---|
| 310 | 306 | .map_voltage = regulator_map_voltage_ascend, |
|---|
| 311 | 307 | .is_enabled = lp3972_ldo_is_enabled, |
|---|
| .. | .. |
|---|
| 386 | 382 | LP3972_VOL_CHANGE_FLAG_MASK, 0); |
|---|
| 387 | 383 | } |
|---|
| 388 | 384 | |
|---|
| 389 | | -static struct regulator_ops lp3972_dcdc_ops = { |
|---|
| 385 | +static const struct regulator_ops lp3972_dcdc_ops = { |
|---|
| 390 | 386 | .list_voltage = regulator_list_voltage_table, |
|---|
| 391 | 387 | .map_voltage = regulator_map_voltage_ascend, |
|---|
| 392 | 388 | .is_enabled = lp3972_dcdc_is_enabled, |
|---|