forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
kernel/drivers/iio/light/rpr0521.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * RPR-0521 ROHM Ambient Light and Proximity Sensor
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 RPR-0521RS (7-bit I2C slave address 0x38).
118 *
....@@ -582,8 +579,6 @@
582579
583580 static const struct iio_buffer_setup_ops rpr0521_buffer_setup_ops = {
584581 .preenable = rpr0521_buffer_preenable,
585
- .postenable = iio_triggered_buffer_postenable,
586
- .predisable = iio_triggered_buffer_predisable,
587582 .postdisable = rpr0521_buffer_postdisable,
588583 };
589584
....@@ -960,7 +955,6 @@
960955
961956 mutex_init(&data->lock);
962957
963
- indio_dev->dev.parent = &client->dev;
964958 indio_dev->info = &rpr0521_info;
965959 indio_dev->name = RPR0521_DRV_NAME;
966960 indio_dev->channels = rpr0521_channels;