1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2020 Invensense, Inc.
6 #ifndef INV_ICM42600_TEMP_H_
7 #define INV_ICM42600_TEMP_H_
9 #include <linux/iio/iio.h>
11 #define INV_ICM42600_TEMP_CHAN(_index) \
14 .info_mask_separate = \
15 BIT(IIO_CHAN_INFO_RAW) | \
16 BIT(IIO_CHAN_INFO_OFFSET) | \
17 BIT(IIO_CHAN_INFO_SCALE), \
18 .scan_index = _index, \
26 int inv_icm42600_temp_read_raw(struct iio_dev *indio_dev,
27 struct iio_chan_spec const *chan,
28 int *val, int *val2, long mask);