David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Industrial I/O in kernel access map interface. |
| 4 | * |
| 5 | * Copyright (c) 2011 Jonathan Cameron |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _IIO_INKERN_H_ |
| 9 | #define _IIO_INKERN_H_ |
| 10 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 11 | struct iio_dev; |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 12 | struct iio_map; |
| 13 | |
| 14 | /** |
| 15 | * iio_map_array_register() - tell the core about inkernel consumers |
| 16 | * @indio_dev: provider device |
| 17 | * @map: array of mappings specifying association of channel with client |
| 18 | */ |
| 19 | int iio_map_array_register(struct iio_dev *indio_dev, |
| 20 | struct iio_map *map); |
| 21 | |
| 22 | /** |
| 23 | * iio_map_array_unregister() - tell the core to remove consumer mappings for |
| 24 | * the given provider device |
| 25 | * @indio_dev: provider device |
| 26 | */ |
| 27 | int iio_map_array_unregister(struct iio_dev *indio_dev); |
| 28 | |
| 29 | #endif |