.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * kxsd9.c simple support for the Kionix KXSD9 3D |
---|
3 | 4 | * accelerometer. |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (c) 2008-2009 Jonathan Cameron <jic23@kernel.org> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | * |
---|
11 | 8 | * The i2c interface is very similar, so shouldn't be a problem once |
---|
12 | 9 | * I have a suitable wire made up. |
---|
.. | .. |
---|
261 | 258 | |
---|
262 | 259 | static const struct iio_buffer_setup_ops kxsd9_buffer_setup_ops = { |
---|
263 | 260 | .preenable = kxsd9_buffer_preenable, |
---|
264 | | - .postenable = iio_triggered_buffer_postenable, |
---|
265 | | - .predisable = iio_triggered_buffer_predisable, |
---|
266 | 261 | .postdisable = kxsd9_buffer_postdisable, |
---|
267 | 262 | }; |
---|
268 | 263 | |
---|
.. | .. |
---|
420 | 415 | indio_dev->channels = kxsd9_channels; |
---|
421 | 416 | indio_dev->num_channels = ARRAY_SIZE(kxsd9_channels); |
---|
422 | 417 | indio_dev->name = name; |
---|
423 | | - indio_dev->dev.parent = dev; |
---|
424 | 418 | indio_dev->info = &kxsd9_info; |
---|
425 | 419 | indio_dev->modes = INDIO_DIRECT_MODE; |
---|
426 | 420 | indio_dev->available_scan_masks = kxsd9_scan_masks; |
---|
427 | 421 | |
---|
428 | 422 | /* Read the mounting matrix, if present */ |
---|
429 | | - ret = of_iio_read_mount_matrix(dev, |
---|
430 | | - "mount-matrix", |
---|
431 | | - &st->orientation); |
---|
| 423 | + ret = iio_read_mount_matrix(dev, "mount-matrix", &st->orientation); |
---|
432 | 424 | if (ret) |
---|
433 | 425 | return ret; |
---|
434 | 426 | |
---|