// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2016 Golden Delicious Comp. GmbH&Co. KG * Nikolaus Schaller <[email protected]> */ #include <linux/i2c.h> #include <linux/iio/iio.h> #include "tsc2007.h" struct tsc2007_iio { … }; #define TSC2007_CHAN_IIO(_chan, _name, _type, _chan_info) … static const struct iio_chan_spec tsc2007_iio_channel[] = …; static int tsc2007_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int *val, int *val2, long mask) { … } static const struct iio_info tsc2007_iio_info = …; int tsc2007_iio_configure(struct tsc2007 *ts) { … }