.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Regulator driver for National Semiconductors LP3971 PMIC chip |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Author: Marek Szyprowski <m.szyprowski@samsung.com> |
---|
6 | 7 | * |
---|
7 | 8 | * Based on wm8350.c |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 as |
---|
11 | | - * published by the Free Software Foundation. |
---|
12 | | - * |
---|
13 | 9 | */ |
---|
14 | 10 | |
---|
15 | 11 | #include <linux/bug.h> |
---|
.. | .. |
---|
159 | 155 | selector << LDO_VOL_CONTR_SHIFT(ldo)); |
---|
160 | 156 | } |
---|
161 | 157 | |
---|
162 | | -static struct regulator_ops lp3971_ldo_ops = { |
---|
| 158 | +static const struct regulator_ops lp3971_ldo_ops = { |
---|
163 | 159 | .list_voltage = regulator_list_voltage_table, |
---|
164 | 160 | .map_voltage = regulator_map_voltage_ascend, |
---|
165 | 161 | .is_enabled = lp3971_ldo_is_enabled, |
---|
.. | .. |
---|
233 | 229 | 0 << BUCK_VOL_CHANGE_SHIFT(buck)); |
---|
234 | 230 | } |
---|
235 | 231 | |
---|
236 | | -static struct regulator_ops lp3971_dcdc_ops = { |
---|
| 232 | +static const struct regulator_ops lp3971_dcdc_ops = { |
---|
237 | 233 | .list_voltage = regulator_list_voltage_table, |
---|
238 | 234 | .map_voltage = regulator_map_voltage_ascend, |
---|
239 | 235 | .is_enabled = lp3971_dcdc_is_enabled, |
---|
.. | .. |
---|
404 | 400 | return 0; |
---|
405 | 401 | } |
---|
406 | 402 | |
---|
407 | | -static int lp3971_i2c_probe(struct i2c_client *i2c, |
---|
408 | | - const struct i2c_device_id *id) |
---|
| 403 | +static int lp3971_i2c_probe(struct i2c_client *i2c) |
---|
409 | 404 | { |
---|
410 | 405 | struct lp3971 *lp3971; |
---|
411 | 406 | struct lp3971_platform_data *pdata = dev_get_platdata(&i2c->dev); |
---|
.. | .. |
---|
453 | 448 | .driver = { |
---|
454 | 449 | .name = "LP3971", |
---|
455 | 450 | }, |
---|
456 | | - .probe = lp3971_i2c_probe, |
---|
| 451 | + .probe_new = lp3971_i2c_probe, |
---|
457 | 452 | .id_table = lp3971_i2c_id, |
---|
458 | 453 | }; |
---|
459 | 454 | |
---|