| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /** |
|---|
| 2 | 3 | * Sensortek STK8312 3-Axis Accelerometer |
|---|
| 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 STK8312; 7-bit I2C address: 0x3D. |
|---|
| 11 | 8 | */ |
|---|
| .. | .. |
|---|
| 499 | 496 | |
|---|
| 500 | 497 | static const struct iio_buffer_setup_ops stk8312_buffer_setup_ops = { |
|---|
| 501 | 498 | .preenable = stk8312_buffer_preenable, |
|---|
| 502 | | - .postenable = iio_triggered_buffer_postenable, |
|---|
| 503 | | - .predisable = iio_triggered_buffer_predisable, |
|---|
| 504 | 499 | .postdisable = stk8312_buffer_postdisable, |
|---|
| 505 | 500 | }; |
|---|
| 506 | 501 | |
|---|
| .. | .. |
|---|
| 522 | 517 | i2c_set_clientdata(client, indio_dev); |
|---|
| 523 | 518 | mutex_init(&data->lock); |
|---|
| 524 | 519 | |
|---|
| 525 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 526 | 520 | indio_dev->info = &stk8312_info; |
|---|
| 527 | 521 | indio_dev->name = STK8312_DRIVER_NAME; |
|---|
| 528 | 522 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|