| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ADT7410/ADT7420 digital temperature sensor driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2012-2013 Analog Devices Inc. |
|---|
| 5 | 6 | * Author: Lars-Peter Clausen <lars@metafoo.de> |
|---|
| 6 | | - * |
|---|
| 7 | | - * Licensed under the GPL-2 or later. |
|---|
| 8 | 7 | */ |
|---|
| 9 | 8 | |
|---|
| 10 | 9 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 40 | 39 | .write_byte = adt7410_i2c_write_byte, |
|---|
| 41 | 40 | }; |
|---|
| 42 | 41 | |
|---|
| 43 | | -static int adt7410_i2c_probe(struct i2c_client *client, |
|---|
| 44 | | - const struct i2c_device_id *id) |
|---|
| 42 | +static int adt7410_i2c_probe(struct i2c_client *client) |
|---|
| 45 | 43 | { |
|---|
| 46 | 44 | if (!i2c_check_functionality(client->adapter, |
|---|
| 47 | 45 | I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA)) |
|---|
| .. | .. |
|---|
| 68 | 66 | .name = "adt7410", |
|---|
| 69 | 67 | .pm = ADT7X10_DEV_PM_OPS, |
|---|
| 70 | 68 | }, |
|---|
| 71 | | - .probe = adt7410_i2c_probe, |
|---|
| 69 | + .probe_new = adt7410_i2c_probe, |
|---|
| 72 | 70 | .remove = adt7410_i2c_remove, |
|---|
| 73 | 71 | .id_table = adt7410_ids, |
|---|
| 74 | 72 | .address_list = I2C_ADDRS(0x48, 0x49, 0x4a, 0x4b), |
|---|