hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/iio/accel/stk8ba50.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * Sensortek STK8BA50 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 * STK8BA50 7-bit I2C address: 0x18.
118 */
....@@ -378,8 +375,6 @@
378375
379376 static const struct iio_buffer_setup_ops stk8ba50_buffer_setup_ops = {
380377 .preenable = stk8ba50_buffer_preenable,
381
- .postenable = iio_triggered_buffer_postenable,
382
- .predisable = iio_triggered_buffer_predisable,
383378 .postdisable = stk8ba50_buffer_postdisable,
384379 };
385380
....@@ -401,7 +396,6 @@
401396 i2c_set_clientdata(client, indio_dev);
402397 mutex_init(&data->lock);
403398
404
- indio_dev->dev.parent = &client->dev;
405399 indio_dev->info = &stk8ba50_info;
406400 indio_dev->name = STK8BA50_DRIVER_NAME;
407401 indio_dev->modes = INDIO_DIRECT_MODE;