| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * asc7621.c - Part of lm_sensors, Linux kernel modules for hardware monitoring |
|---|
| 3 | 4 | * Copyright (c) 2007, 2010 George Joseph <george.joseph@fairview5.com> |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 7 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | | - * (at your option) any later version. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - * GNU General Public License for more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License |
|---|
| 16 | | - * along with this program; if not, write to the Free Software |
|---|
| 17 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 18 | 5 | */ |
|---|
| 19 | 6 | |
|---|
| 20 | 7 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 1100 | 1087 | } |
|---|
| 1101 | 1088 | |
|---|
| 1102 | 1089 | static int |
|---|
| 1103 | | -asc7621_probe(struct i2c_client *client, const struct i2c_device_id *id) |
|---|
| 1090 | +asc7621_probe(struct i2c_client *client) |
|---|
| 1104 | 1091 | { |
|---|
| 1105 | 1092 | struct asc7621_data *data; |
|---|
| 1106 | 1093 | int i, err; |
|---|
| .. | .. |
|---|
| 1206 | 1193 | .driver = { |
|---|
| 1207 | 1194 | .name = "asc7621", |
|---|
| 1208 | 1195 | }, |
|---|
| 1209 | | - .probe = asc7621_probe, |
|---|
| 1196 | + .probe_new = asc7621_probe, |
|---|
| 1210 | 1197 | .remove = asc7621_remove, |
|---|
| 1211 | 1198 | .id_table = asc7621_id, |
|---|
| 1212 | 1199 | .detect = asc7621_detect, |
|---|