.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * atxp1.c - kernel module for setting CPU VID and general purpose |
---|
3 | 4 | * I/Os using the Attansic ATXP1 chip. |
---|
4 | 5 | * |
---|
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 | 6 | * The ATXP1 can reside on I2C addresses 0x37 or 0x4e. The chip is |
---|
16 | 7 | * not auto-detected by the driver and must be instantiated explicitly. |
---|
17 | | - * See Documentation/i2c/instantiating-devices for more information. |
---|
| 8 | + * See Documentation/i2c/instantiating-devices.rst for more information. |
---|
18 | 9 | */ |
---|
19 | 10 | |
---|
20 | 11 | #include <linux/kernel.h> |
---|
.. | .. |
---|
253 | 244 | }; |
---|
254 | 245 | ATTRIBUTE_GROUPS(atxp1); |
---|
255 | 246 | |
---|
256 | | -static int atxp1_probe(struct i2c_client *client, |
---|
257 | | - const struct i2c_device_id *id) |
---|
| 247 | +static int atxp1_probe(struct i2c_client *client) |
---|
258 | 248 | { |
---|
259 | 249 | struct device *dev = &client->dev; |
---|
260 | 250 | struct atxp1_data *data; |
---|
.. | .. |
---|
297 | 287 | .driver = { |
---|
298 | 288 | .name = "atxp1", |
---|
299 | 289 | }, |
---|
300 | | - .probe = atxp1_probe, |
---|
| 290 | + .probe_new = atxp1_probe, |
---|
301 | 291 | .id_table = atxp1_id, |
---|
302 | 292 | }; |
---|
303 | 293 | |
---|