linux/drivers/iio/common/ssp_sensors/ssp_iio_sensor.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __SSP_IIO_SENSOR_H__
#define __SSP_IIO_SENSOR_H__

#define SSP_CHANNEL_AG(_type, _mod, _index)

/* It is defined here as it is a mixed timestamp */
#define SSP_CHAN_TIMESTAMP(_si)

#define SSP_MS_PER_S
#define SSP_INVERTED_SCALING_FACTOR

#define SSP_FACTOR_WITH_MS

int ssp_common_buffer_postenable(struct iio_dev *indio_dev);

int ssp_common_buffer_postdisable(struct iio_dev *indio_dev);

int ssp_common_process_data(struct iio_dev *indio_dev, void *buf,
			    unsigned int len, int64_t timestamp);

/* Converts time in ms to frequency */
static inline void ssp_convert_to_freq(u32 time, int *integer_part,
				       int *fractional)
{}

/* Converts frequency to time in ms */
static inline int ssp_convert_to_time(int integer_part, int fractional)
{}
#endif /* __SSP_IIO_SENSOR_H__ */