.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * si7020.c - Silicon Labs Si7013/20/21 Relative Humidity and Temp Sensors |
---|
3 | 4 | * Copyright (c) 2013,2014 Uplogix, Inc. |
---|
4 | 5 | * David Barksdale <dbarksdale@uplogix.com> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify it |
---|
7 | | - * under the terms and conditions of the GNU General Public License, |
---|
8 | | - * version 2, as published by the Free Software Foundation. |
---|
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 | 6 | */ |
---|
15 | 7 | |
---|
16 | 8 | /* |
---|
.. | .. |
---|
28 | 20 | #include <linux/delay.h> |
---|
29 | 21 | #include <linux/i2c.h> |
---|
30 | 22 | #include <linux/module.h> |
---|
| 23 | +#include <linux/mod_devicetable.h> |
---|
31 | 24 | #include <linux/slab.h> |
---|
32 | 25 | #include <linux/sysfs.h> |
---|
33 | 26 | |
---|
.. | .. |
---|
136 | 129 | data = iio_priv(indio_dev); |
---|
137 | 130 | *data = client; |
---|
138 | 131 | |
---|
139 | | - indio_dev->dev.parent = &client->dev; |
---|
140 | 132 | indio_dev->name = dev_name(&client->dev); |
---|
141 | 133 | indio_dev->modes = INDIO_DIRECT_MODE; |
---|
142 | 134 | indio_dev->info = &si7020_info; |
---|
.. | .. |
---|
162 | 154 | static struct i2c_driver si7020_driver = { |
---|
163 | 155 | .driver = { |
---|
164 | 156 | .name = "si7020", |
---|
165 | | - .of_match_table = of_match_ptr(si7020_dt_ids), |
---|
| 157 | + .of_match_table = si7020_dt_ids, |
---|
166 | 158 | }, |
---|
167 | 159 | .probe = si7020_probe, |
---|
168 | 160 | .id_table = si7020_id, |
---|