blob: 36de60a5da7aab7baaabf14e969eeaacf41c13e7 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Industrial I/O in kernel access map interface.
4 *
5 * Copyright (c) 2011 Jonathan Cameron
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00006 */
7
8#ifndef _IIO_INKERN_H_
9#define _IIO_INKERN_H_
10
David Brazdil0f672f62019-12-10 10:32:29 +000011struct iio_dev;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000012struct 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 */
19int 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 */
27int iio_map_array_unregister(struct iio_dev *indio_dev);
28
29#endif