Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Industrial I/O in kernel hardware consumer interface
0004  *
0005  * Copyright 2017 Analog Devices Inc.
0006  *  Author: Lars-Peter Clausen <lars@metafoo.de>
0007  */
0008 
0009 #ifndef LINUX_IIO_HW_CONSUMER_H
0010 #define LINUX_IIO_HW_CONSUMER_H
0011 
0012 struct iio_hw_consumer;
0013 
0014 struct iio_hw_consumer *iio_hw_consumer_alloc(struct device *dev);
0015 void iio_hw_consumer_free(struct iio_hw_consumer *hwc);
0016 struct iio_hw_consumer *devm_iio_hw_consumer_alloc(struct device *dev);
0017 int iio_hw_consumer_enable(struct iio_hw_consumer *hwc);
0018 void iio_hw_consumer_disable(struct iio_hw_consumer *hwc);
0019 
0020 #endif