| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * g762 - Driver for the Global Mixed-mode Technology Inc. fan speed |
|---|
| 3 | 4 | * PWM controller chips from G762 family, i.e. G762 and G763 |
|---|
| .. | .. |
|---|
| 24 | 25 | * |
|---|
| 25 | 26 | * g762: minimal datasheet available at: |
|---|
| 26 | 27 | * http://www.gmt.com.tw/product/datasheet/EDS-762_3.pdf |
|---|
| 27 | | - * |
|---|
| 28 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 29 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 30 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 31 | | - * (at your option) any later version. |
|---|
| 32 | | - * |
|---|
| 33 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 34 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 35 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 36 | | - * GNU General Public License for more details. |
|---|
| 37 | | - * |
|---|
| 38 | | - * You should have received a copy of the GNU General Public License |
|---|
| 39 | | - * along with this program; if not, write to the Free Software |
|---|
| 40 | | - * Foundation. |
|---|
| 41 | 28 | */ |
|---|
| 42 | 29 | |
|---|
| 43 | 30 | #include <linux/device.h> |
|---|
| .. | .. |
|---|
| 1046 | 1033 | data->fan_cmd1); |
|---|
| 1047 | 1034 | } |
|---|
| 1048 | 1035 | |
|---|
| 1049 | | -static int g762_probe(struct i2c_client *client, const struct i2c_device_id *id) |
|---|
| 1036 | +static int g762_probe(struct i2c_client *client) |
|---|
| 1050 | 1037 | { |
|---|
| 1051 | 1038 | struct device *dev = &client->dev; |
|---|
| 1052 | 1039 | struct device *hwmon_dev; |
|---|
| .. | .. |
|---|
| 1092 | 1079 | .name = DRVNAME, |
|---|
| 1093 | 1080 | .of_match_table = of_match_ptr(g762_dt_match), |
|---|
| 1094 | 1081 | }, |
|---|
| 1095 | | - .probe = g762_probe, |
|---|
| 1082 | + .probe_new = g762_probe, |
|---|
| 1096 | 1083 | .id_table = g762_id, |
|---|
| 1097 | 1084 | }; |
|---|
| 1098 | 1085 | |
|---|