forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/iio/accel/adxl345_core.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ADXL345 3-Axis Digital Accelerometer IIO core driver
34 *
45 * Copyright (c) 2017 Eva Rachel Retuya <eraretuya@gmail.com>
56 *
6
- * This file is subject to the terms and conditions of version 2 of
7
- * the GNU General Public License. See the file COPYING in the main
8
- * directory of this archive for more details.
9
- *
10
- * Datasheet: http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf
7
+ * Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf
118 */
129
1310 #include <linux/module.h>
....@@ -150,8 +147,8 @@
150147 }
151148
152149 static int adxl345_write_raw(struct iio_dev *indio_dev,
153
- struct iio_chan_spec const *chan,
154
- int val, int val2, long mask)
150
+ struct iio_chan_spec const *chan,
151
+ int val, int val2, long mask)
155152 {
156153 struct adxl345_data *data = iio_priv(indio_dev);
157154 s64 n;
....@@ -249,7 +246,6 @@
249246 return ret;
250247 }
251248
252
- indio_dev->dev.parent = dev;
253249 indio_dev->name = name;
254250 indio_dev->info = &adxl345_info;
255251 indio_dev->modes = INDIO_DIRECT_MODE;