forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/iio/accel/stk8312.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * Sensortek STK8312 3-Axis Accelerometer
34 *
45 * Copyright (c) 2015, Intel Corporation.
5
- *
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.
96 *
107 * IIO driver for STK8312; 7-bit I2C address: 0x3D.
118 */
....@@ -499,8 +496,6 @@
499496
500497 static const struct iio_buffer_setup_ops stk8312_buffer_setup_ops = {
501498 .preenable = stk8312_buffer_preenable,
502
- .postenable = iio_triggered_buffer_postenable,
503
- .predisable = iio_triggered_buffer_predisable,
504499 .postdisable = stk8312_buffer_postdisable,
505500 };
506501
....@@ -522,7 +517,6 @@
522517 i2c_set_clientdata(client, indio_dev);
523518 mutex_init(&data->lock);
524519
525
- indio_dev->dev.parent = &client->dev;
526520 indio_dev->info = &stk8312_info;
527521 indio_dev->name = STK8312_DRIVER_NAME;
528522 indio_dev->modes = INDIO_DIRECT_MODE;