.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * htu21.c - Support for Measurement-Specialties |
---|
3 | 4 | * htu21 temperature & humidity sensor |
---|
4 | 5 | * and humidity part of MS8607 sensor |
---|
5 | 6 | * |
---|
6 | 7 | * Copyright (c) 2014 Measurement-Specialties |
---|
7 | | - * |
---|
8 | | - * Licensed under the GPL-2. |
---|
9 | 8 | * |
---|
10 | 9 | * (7-bit I2C slave address 0x40) |
---|
11 | 10 | * |
---|
.. | .. |
---|
20 | 19 | #include <linux/kernel.h> |
---|
21 | 20 | #include <linux/stat.h> |
---|
22 | 21 | #include <linux/module.h> |
---|
| 22 | +#include <linux/mod_devicetable.h> |
---|
23 | 23 | #include <linux/iio/iio.h> |
---|
24 | 24 | #include <linux/iio/sysfs.h> |
---|
25 | 25 | |
---|
.. | .. |
---|
205 | 205 | |
---|
206 | 206 | indio_dev->info = &htu21_info; |
---|
207 | 207 | indio_dev->name = id->name; |
---|
208 | | - indio_dev->dev.parent = &client->dev; |
---|
209 | 208 | indio_dev->modes = INDIO_DIRECT_MODE; |
---|
210 | 209 | |
---|
211 | 210 | if (id->driver_data == MS8607) { |
---|
.. | .. |
---|
249 | 248 | .id_table = htu21_id, |
---|
250 | 249 | .driver = { |
---|
251 | 250 | .name = "htu21", |
---|
252 | | - .of_match_table = of_match_ptr(htu21_of_match), |
---|
| 251 | + .of_match_table = htu21_of_match, |
---|
253 | 252 | }, |
---|
254 | 253 | }; |
---|
255 | 254 | |
---|