forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/iio/accel/dmard06.c
....@@ -1,14 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * IIO driver for Domintech DMARD06 accelerometer
34 *
45 * Copyright (C) 2016 Aleksei Mamlin <mamlinav@gmail.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.
96 */
107
118 #include <linux/module.h>
9
+#include <linux/mod_devicetable.h>
1210 #include <linux/i2c.h>
1311 #include <linux/iio/iio.h>
1412
....@@ -163,7 +161,6 @@
163161 dmard06->chip_id = ret;
164162
165163 i2c_set_clientdata(client, indio_dev);
166
- indio_dev->dev.parent = &client->dev;
167164 indio_dev->name = DMARD06_DRV_NAME;
168165 indio_dev->modes = INDIO_DIRECT_MODE;
169166 indio_dev->channels = dmard06_channels;
....@@ -229,7 +226,7 @@
229226 .id_table = dmard06_id,
230227 .driver = {
231228 .name = DMARD06_DRV_NAME,
232
- .of_match_table = of_match_ptr(dmard06_of_match),
229
+ .of_match_table = dmard06_of_match,
233230 .pm = DMARD06_PM_OPS,
234231 },
235232 };