| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Hardware monitoring driver for TI TPS40422 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2014 Nokia Solutions and Networks. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | 6 | */ |
|---|
| 16 | 7 | |
|---|
| 17 | 8 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 34 | 25 | | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT, |
|---|
| 35 | 26 | }; |
|---|
| 36 | 27 | |
|---|
| 37 | | -static int tps40422_probe(struct i2c_client *client, |
|---|
| 38 | | - const struct i2c_device_id *id) |
|---|
| 28 | +static int tps40422_probe(struct i2c_client *client) |
|---|
| 39 | 29 | { |
|---|
| 40 | | - return pmbus_do_probe(client, id, &tps40422_info); |
|---|
| 30 | + return pmbus_do_probe(client, &tps40422_info); |
|---|
| 41 | 31 | } |
|---|
| 42 | 32 | |
|---|
| 43 | 33 | static const struct i2c_device_id tps40422_id[] = { |
|---|
| .. | .. |
|---|
| 52 | 42 | .driver = { |
|---|
| 53 | 43 | .name = "tps40422", |
|---|
| 54 | 44 | }, |
|---|
| 55 | | - .probe = tps40422_probe, |
|---|
| 45 | + .probe_new = tps40422_probe, |
|---|
| 56 | 46 | .remove = pmbus_do_remove, |
|---|
| 57 | 47 | .id_table = tps40422_id, |
|---|
| 58 | 48 | }; |
|---|