| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * STMicroelectronics uvis25 sensor driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2017 STMicroelectronics Inc. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * Licensed under the GPL-2. |
|---|
| 9 | 8 | */ |
|---|
| 10 | 9 | |
|---|
| 11 | 10 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 228 | 227 | |
|---|
| 229 | 228 | static const struct iio_buffer_setup_ops st_uvis25_buffer_ops = { |
|---|
| 230 | 229 | .preenable = st_uvis25_buffer_preenable, |
|---|
| 231 | | - .postenable = iio_triggered_buffer_postenable, |
|---|
| 232 | | - .predisable = iio_triggered_buffer_predisable, |
|---|
| 233 | 230 | .postdisable = st_uvis25_buffer_postdisable, |
|---|
| 234 | 231 | }; |
|---|
| 235 | 232 | |
|---|
| .. | .. |
|---|
| 306 | 303 | return err; |
|---|
| 307 | 304 | |
|---|
| 308 | 305 | iio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 309 | | - iio_dev->dev.parent = dev; |
|---|
| 310 | 306 | iio_dev->channels = st_uvis25_channels; |
|---|
| 311 | 307 | iio_dev->num_channels = ARRAY_SIZE(st_uvis25_channels); |
|---|
| 312 | 308 | iio_dev->name = ST_UVIS25_DEV_NAME; |
|---|