.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Hardware monitoring driver for Maxim MAX20751 |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2015 Guenter Roeck |
---|
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 as published by |
---|
8 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
9 | | - * (at your option) any later version. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | 6 | */ |
---|
16 | 7 | |
---|
17 | 8 | #include <linux/kernel.h> |
---|
.. | .. |
---|
25 | 16 | .pages = 1, |
---|
26 | 17 | .format[PSC_VOLTAGE_IN] = linear, |
---|
27 | 18 | .format[PSC_VOLTAGE_OUT] = vid, |
---|
28 | | - .vrm_version = vr12, |
---|
| 19 | + .vrm_version[0] = vr12, |
---|
29 | 20 | .format[PSC_TEMPERATURE] = linear, |
---|
30 | 21 | .format[PSC_CURRENT_OUT] = linear, |
---|
31 | 22 | .format[PSC_POWER] = linear, |
---|
.. | .. |
---|
35 | 26 | PMBUS_HAVE_POUT, |
---|
36 | 27 | }; |
---|
37 | 28 | |
---|
38 | | -static int max20751_probe(struct i2c_client *client, |
---|
39 | | - const struct i2c_device_id *id) |
---|
| 29 | +static int max20751_probe(struct i2c_client *client) |
---|
40 | 30 | { |
---|
41 | | - return pmbus_do_probe(client, id, &max20751_info); |
---|
| 31 | + return pmbus_do_probe(client, &max20751_info); |
---|
42 | 32 | } |
---|
43 | 33 | |
---|
44 | 34 | static const struct i2c_device_id max20751_id[] = { |
---|
.. | .. |
---|
52 | 42 | .driver = { |
---|
53 | 43 | .name = "max20751", |
---|
54 | 44 | }, |
---|
55 | | - .probe = max20751_probe, |
---|
| 45 | + .probe_new = max20751_probe, |
---|
56 | 46 | .remove = pmbus_do_remove, |
---|
57 | 47 | .id_table = max20751_id, |
---|
58 | 48 | }; |
---|