forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/iio/proximity/srf08.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * srf08.c - Support for Devantech SRFxx ultrasonic ranger
34 * with i2c interface
....@@ -5,14 +6,10 @@
56 *
67 * Copyright (c) 2016, 2017 Andreas Klinger <ak@it-klinger.de>
78 *
8
- * This file is subject to the terms and conditions of version 2 of
9
- * the GNU General Public License. See the file COPYING in the main
10
- * directory of this archive for more details.
11
- *
129 * For details about the device see:
13
- * http://www.robot-electronics.co.uk/htm/srf08tech.html
14
- * http://www.robot-electronics.co.uk/htm/srf10tech.htm
15
- * http://www.robot-electronics.co.uk/htm/srf02tech.htm
10
+ * https://www.robot-electronics.co.uk/htm/srf08tech.html
11
+ * https://www.robot-electronics.co.uk/htm/srf10tech.htm
12
+ * https://www.robot-electronics.co.uk/htm/srf02tech.htm
1613 */
1714
1815 #include <linux/err.h>
....@@ -486,7 +483,6 @@
486483 }
487484
488485 indio_dev->name = id->name;
489
- indio_dev->dev.parent = &client->dev;
490486 indio_dev->modes = INDIO_DIRECT_MODE;
491487 indio_dev->channels = srf08_channels;
492488 indio_dev->num_channels = ARRAY_SIZE(srf08_channels);