#ifndef __SSP_IIO_SENSOR_H__
#define __SSP_IIO_SENSOR_H__
#define SSP_CHANNEL_AG(_type, _mod, _index) …
#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);
static inline void ssp_convert_to_freq(u32 time, int *integer_part,
int *fractional)
{ … }
static inline int ssp_convert_to_time(int integer_part, int fractional)
{ … }
#endif