// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2014, Samsung Electronics Co. Ltd. All Rights Reserved. */ #include <linux/iio/common/ssp_sensors.h> #include <linux/iio/buffer.h> #include <linux/iio/kfifo_buf.h> #include <linux/module.h> #include <linux/slab.h> #include "ssp_iio_sensor.h" /** * ssp_common_buffer_postenable() - generic postenable callback for ssp buffer * * @indio_dev: iio device * * Returns 0 or negative value in case of error */ int ssp_common_buffer_postenable(struct iio_dev *indio_dev) { … } EXPORT_SYMBOL_NS(…); /** * ssp_common_buffer_postdisable() - generic postdisable callback for ssp buffer * * @indio_dev: iio device * * Returns 0 or negative value in case of error */ int ssp_common_buffer_postdisable(struct iio_dev *indio_dev) { … } EXPORT_SYMBOL_NS(…); /** * ssp_common_process_data() - Common process data callback for ssp sensors * * @indio_dev: iio device * @buf: source buffer * @len: sensor data length * @timestamp: system timestamp * * Returns 0 or negative value in case of error */ int ssp_common_process_data(struct iio_dev *indio_dev, void *buf, unsigned int len, int64_t timestamp) { … } EXPORT_SYMBOL_NS(…); MODULE_AUTHOR(…) …; MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …; MODULE_IMPORT_NS(…);