blob: db8c00b9c7a57b6ba8170259f2f44850f1f4aa19 [file] [log] [blame]
Lars-Peter Clausen48b66f82018-01-10 11:13:03 +01001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Industrial I/O in kernel hardware consumer interface
4 *
5 * Copyright 2017 Analog Devices Inc.
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
7 */
8
9#ifndef LINUX_IIO_HW_CONSUMER_H
10#define LINUX_IIO_HW_CONSUMER_H
11
12struct iio_hw_consumer;
13
14struct iio_hw_consumer *iio_hw_consumer_alloc(struct device *dev);
15void iio_hw_consumer_free(struct iio_hw_consumer *hwc);
16int iio_hw_consumer_enable(struct iio_hw_consumer *hwc);
17void iio_hw_consumer_disable(struct iio_hw_consumer *hwc);
18
19#endif