| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * RPR-0521 ROHM Ambient Light and Proximity Sensor |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | * |
|---|
| 10 | 7 | * IIO driver for RPR-0521RS (7-bit I2C slave address 0x38). |
|---|
| 11 | 8 | * |
|---|
| .. | .. |
|---|
| 582 | 579 | |
|---|
| 583 | 580 | static const struct iio_buffer_setup_ops rpr0521_buffer_setup_ops = { |
|---|
| 584 | 581 | .preenable = rpr0521_buffer_preenable, |
|---|
| 585 | | - .postenable = iio_triggered_buffer_postenable, |
|---|
| 586 | | - .predisable = iio_triggered_buffer_predisable, |
|---|
| 587 | 582 | .postdisable = rpr0521_buffer_postdisable, |
|---|
| 588 | 583 | }; |
|---|
| 589 | 584 | |
|---|
| .. | .. |
|---|
| 960 | 955 | |
|---|
| 961 | 956 | mutex_init(&data->lock); |
|---|
| 962 | 957 | |
|---|
| 963 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 964 | 958 | indio_dev->info = &rpr0521_info; |
|---|
| 965 | 959 | indio_dev->name = RPR0521_DRV_NAME; |
|---|
| 966 | 960 | indio_dev->channels = rpr0521_channels; |
|---|