diff options
author | Mark Brown <broonie@kernel.org> | 2019-05-06 22:52:14 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-06 22:52:14 +0900 |
commit | e2a23affe6a6a15111ae56edd7e4f3c9673ef201 (patch) | |
tree | a69d90bfe04ff687e8ccde00ddac9aea357e33e6 /drivers/regulator/sky81452-regulator.c | |
parent | Merge branch 'regulator-5.1' into regulator-linus (diff) | |
parent | regulator: core: simplify return value on suported_voltage (diff) | |
download | linux-dev-e2a23affe6a6a15111ae56edd7e4f3c9673ef201.tar.xz linux-dev-e2a23affe6a6a15111ae56edd7e4f3c9673ef201.zip |
Merge branch 'regulator-5.2' into regulator-next
Diffstat (limited to 'drivers/regulator/sky81452-regulator.c')
-rw-r--r-- | drivers/regulator/sky81452-regulator.c | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/drivers/regulator/sky81452-regulator.c b/drivers/regulator/sky81452-regulator.c index 647860611916..177dede82a61 100644 --- a/drivers/regulator/sky81452-regulator.c +++ b/drivers/regulator/sky81452-regulator.c @@ -1,21 +1,9 @@ -/* - * sky81452-regulator.c SKY81452 regulator driver - * - * Copyright 2014 Skyworks Solutions Inc. - * Author : Gyungoh Yoo <jack.yoo@skyworksinc.com> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, see <http://www.gnu.org/licenses/>. - */ +// SPDX-License-Identifier: GPL-2.0 +// +// sky81452-regulator.c SKY81452 regulator driver +// +// Copyright 2014 Skyworks Solutions Inc. +// Author : Gyungoh Yoo <jack.yoo@skyworksinc.com> #include <linux/module.h> #include <linux/kernel.h> @@ -34,7 +22,7 @@ #define SKY81452_LEN 0x40 #define SKY81452_LOUT 0x1F -static struct regulator_ops sky81452_reg_ops = { +static const struct regulator_ops sky81452_reg_ops = { .list_voltage = regulator_list_voltage_linear_range, .map_voltage = regulator_map_voltage_linear_range, .get_voltage_sel = regulator_get_voltage_sel_regmap, |