/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2018 Axentia Technologies AB */ #ifndef __IIO_RESCALE_H__ #define __IIO_RESCALE_H__ #include <linux/types.h> #include <linux/iio/iio.h> struct device; struct rescale; struct rescale_cfg { … }; struct rescale { … }; int rescale_process_scale(struct rescale *rescale, int scale_type, int *val, int *val2); int rescale_process_offset(struct rescale *rescale, int scale_type, int scale, int scale2, int schan_off, int *val, int *val2); #endif /* __IIO_RESCALE_H__ */