Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80ac4b8a authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

iio:light:adjd_s311 replaces IIO_ST macro with explicit entries to struct scan_type



IIO_ST is going away as it is a pain to maintain.

Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent cb4417f9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -155,7 +155,12 @@ done:
		BIT(IIO_CHAN_INFO_INT_TIME), \
	.channel2 = (IIO_MOD_LIGHT_##_color), \
	.scan_index = (_scan_idx), \
	.scan_type = IIO_ST('u', 10, 16, 0), \
	.scan_type = { \
		.sign = 'u', \
		.realbits = 10, \
		.storagebits = 16, \
		.endianness = IIO_CPU, \
	}, \
}

static const struct iio_chan_spec adjd_s311_channels[] = {