hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/regulator/lp3972.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Regulator driver for National Semiconductors LP3972 PMIC chip
34 *
45 * 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
- *
106 */
117
128 #include <linux/bug.h>
....@@ -305,7 +301,7 @@
305301 return ret;
306302 }
307303
308
-static struct regulator_ops lp3972_ldo_ops = {
304
+static const struct regulator_ops lp3972_ldo_ops = {
309305 .list_voltage = regulator_list_voltage_table,
310306 .map_voltage = regulator_map_voltage_ascend,
311307 .is_enabled = lp3972_ldo_is_enabled,
....@@ -386,7 +382,7 @@
386382 LP3972_VOL_CHANGE_FLAG_MASK, 0);
387383 }
388384
389
-static struct regulator_ops lp3972_dcdc_ops = {
385
+static const struct regulator_ops lp3972_dcdc_ops = {
390386 .list_voltage = regulator_list_voltage_table,
391387 .map_voltage = regulator_map_voltage_ascend,
392388 .is_enabled = lp3972_dcdc_is_enabled,