| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * w83l785ts.c - Part of lm_sensors, Linux kernel modules for hardware |
|---|
| 3 | 4 | * monitoring |
|---|
| .. | .. |
|---|
| 14 | 15 | * |
|---|
| 15 | 16 | * Thanks to James Bolt <james@evilpenguin.com> for benchmarking the read |
|---|
| 16 | 17 | * error handling mechanism. |
|---|
| 17 | | - * |
|---|
| 18 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 19 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 20 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 21 | | - * (at your option) any later version. |
|---|
| 22 | | - * |
|---|
| 23 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 24 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 25 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 26 | | - * GNU General Public License for more details. |
|---|
| 27 | | - * |
|---|
| 28 | | - * You should have received a copy of the GNU General Public License |
|---|
| 29 | | - * along with this program; if not, write to the Free Software |
|---|
| 30 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 31 | 18 | */ |
|---|
| 32 | 19 | |
|---|
| 33 | 20 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 75 | 62 | * Functions declaration |
|---|
| 76 | 63 | */ |
|---|
| 77 | 64 | |
|---|
| 78 | | -static int w83l785ts_probe(struct i2c_client *client, |
|---|
| 79 | | - const struct i2c_device_id *id); |
|---|
| 65 | +static int w83l785ts_probe(struct i2c_client *client); |
|---|
| 80 | 66 | static int w83l785ts_detect(struct i2c_client *client, |
|---|
| 81 | 67 | struct i2c_board_info *info); |
|---|
| 82 | 68 | static int w83l785ts_remove(struct i2c_client *client); |
|---|
| .. | .. |
|---|
| 98 | 84 | .driver = { |
|---|
| 99 | 85 | .name = "w83l785ts", |
|---|
| 100 | 86 | }, |
|---|
| 101 | | - .probe = w83l785ts_probe, |
|---|
| 87 | + .probe_new = w83l785ts_probe, |
|---|
| 102 | 88 | .remove = w83l785ts_remove, |
|---|
| 103 | 89 | .id_table = w83l785ts_id, |
|---|
| 104 | 90 | .detect = w83l785ts_detect, |
|---|
| .. | .. |
|---|
| 176 | 162 | return 0; |
|---|
| 177 | 163 | } |
|---|
| 178 | 164 | |
|---|
| 179 | | -static int w83l785ts_probe(struct i2c_client *client, |
|---|
| 180 | | - const struct i2c_device_id *id) |
|---|
| 165 | +static int w83l785ts_probe(struct i2c_client *client) |
|---|
| 181 | 166 | { |
|---|
| 182 | 167 | struct w83l785ts_data *data; |
|---|
| 183 | 168 | struct device *dev = &client->dev; |
|---|