.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * ms5637.c - Support for Measurement-Specialties MS5637, MS5805 |
---|
3 | 4 | * MS5837 and MS8607 pressure & temperature sensor |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (c) 2015 Measurement-Specialties |
---|
6 | | - * |
---|
7 | | - * Licensed under the GPL-2. |
---|
8 | 7 | * |
---|
9 | 8 | * (7-bit I2C slave address 0x76) |
---|
10 | 9 | * |
---|
.. | .. |
---|
23 | 22 | #include <linux/kernel.h> |
---|
24 | 23 | #include <linux/stat.h> |
---|
25 | 24 | #include <linux/module.h> |
---|
| 25 | +#include <linux/mod_devicetable.h> |
---|
26 | 26 | #include <linux/i2c.h> |
---|
27 | 27 | #include <linux/iio/iio.h> |
---|
28 | 28 | #include <linux/iio/sysfs.h> |
---|
.. | .. |
---|
153 | 153 | |
---|
154 | 154 | indio_dev->info = &ms5637_info; |
---|
155 | 155 | indio_dev->name = id->name; |
---|
156 | | - indio_dev->dev.parent = &client->dev; |
---|
157 | 156 | indio_dev->modes = INDIO_DIRECT_MODE; |
---|
158 | 157 | indio_dev->channels = ms5637_channels; |
---|
159 | 158 | indio_dev->num_channels = ARRAY_SIZE(ms5637_channels); |
---|
.. | .. |
---|
194 | 193 | .id_table = ms5637_id, |
---|
195 | 194 | .driver = { |
---|
196 | 195 | .name = "ms5637", |
---|
197 | | - .of_match_table = of_match_ptr(ms5637_of_match), |
---|
| 196 | + .of_match_table = ms5637_of_match, |
---|
198 | 197 | }, |
---|
199 | 198 | }; |
---|
200 | 199 | |
---|