| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /** |
|---|
| 2 | 3 | * Sensortek STK8BA50 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 | * STK8BA50 7-bit I2C address: 0x18. |
|---|
| 11 | 8 | */ |
|---|
| .. | .. |
|---|
| 378 | 375 | |
|---|
| 379 | 376 | static const struct iio_buffer_setup_ops stk8ba50_buffer_setup_ops = { |
|---|
| 380 | 377 | .preenable = stk8ba50_buffer_preenable, |
|---|
| 381 | | - .postenable = iio_triggered_buffer_postenable, |
|---|
| 382 | | - .predisable = iio_triggered_buffer_predisable, |
|---|
| 383 | 378 | .postdisable = stk8ba50_buffer_postdisable, |
|---|
| 384 | 379 | }; |
|---|
| 385 | 380 | |
|---|
| .. | .. |
|---|
| 401 | 396 | i2c_set_clientdata(client, indio_dev); |
|---|
| 402 | 397 | mutex_init(&data->lock); |
|---|
| 403 | 398 | |
|---|
| 404 | | - indio_dev->dev.parent = &client->dev; |
|---|
| 405 | 399 | indio_dev->info = &stk8ba50_info; |
|---|
| 406 | 400 | indio_dev->name = STK8BA50_DRIVER_NAME; |
|---|
| 407 | 401 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|