| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * f75375s.c - driver for the Fintek F75375/SP, F75373 and |
|---|
| 3 | 4 | * F75387SG/RG hardware monitoring features |
|---|
| .. | .. |
|---|
| 13 | 14 | * |
|---|
| 14 | 15 | * f75387: |
|---|
| 15 | 16 | * http://www.fintek.com.tw/files/productfiles/F75387_V027P.pdf |
|---|
| 16 | | - * |
|---|
| 17 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 18 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 19 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 20 | | - * (at your option) any later version. |
|---|
| 21 | | - * |
|---|
| 22 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 23 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 24 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 25 | | - * GNU General Public License for more details. |
|---|
| 26 | | - * |
|---|
| 27 | | - * You should have received a copy of the GNU General Public License |
|---|
| 28 | | - * along with this program; if not, write to the Free Software |
|---|
| 29 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 30 | | - * |
|---|
| 31 | 17 | */ |
|---|
| 32 | 18 | |
|---|
| 33 | 19 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 127 | 113 | |
|---|
| 128 | 114 | static int f75375_detect(struct i2c_client *client, |
|---|
| 129 | 115 | struct i2c_board_info *info); |
|---|
| 130 | | -static int f75375_probe(struct i2c_client *client, |
|---|
| 131 | | - const struct i2c_device_id *id); |
|---|
| 116 | +static int f75375_probe(struct i2c_client *client); |
|---|
| 132 | 117 | static int f75375_remove(struct i2c_client *client); |
|---|
| 133 | 118 | |
|---|
| 134 | 119 | static const struct i2c_device_id f75375_id[] = { |
|---|
| .. | .. |
|---|
| 144 | 129 | .driver = { |
|---|
| 145 | 130 | .name = "f75375", |
|---|
| 146 | 131 | }, |
|---|
| 147 | | - .probe = f75375_probe, |
|---|
| 132 | + .probe_new = f75375_probe, |
|---|
| 148 | 133 | .remove = f75375_remove, |
|---|
| 149 | 134 | .id_table = f75375_id, |
|---|
| 150 | 135 | .detect = f75375_detect, |
|---|
| .. | .. |
|---|
| 828 | 813 | |
|---|
| 829 | 814 | } |
|---|
| 830 | 815 | |
|---|
| 831 | | -static int f75375_probe(struct i2c_client *client, |
|---|
| 832 | | - const struct i2c_device_id *id) |
|---|
| 816 | +static int f75375_probe(struct i2c_client *client) |
|---|
| 833 | 817 | { |
|---|
| 834 | 818 | struct f75375_data *data; |
|---|
| 835 | 819 | struct f75375s_platform_data *f75375s_pdata = |
|---|
| .. | .. |
|---|
| 846 | 830 | |
|---|
| 847 | 831 | i2c_set_clientdata(client, data); |
|---|
| 848 | 832 | mutex_init(&data->update_lock); |
|---|
| 849 | | - data->kind = id->driver_data; |
|---|
| 833 | + data->kind = i2c_match_id(f75375_id, client)->driver_data; |
|---|
| 850 | 834 | |
|---|
| 851 | 835 | err = sysfs_create_group(&client->dev.kobj, &f75375_group); |
|---|
| 852 | 836 | if (err) |
|---|