BigW Consortium Gitlab

Commit 3b577365 by David Frey

Introduced CONFIG_IIO_CHAN_TYPE_GASRESISTANCE

Previous commit 354e27dd introduced a dependency upon IIO_GASRESISTANCE being defined as a member of enum iio_chan_type. The enum is part of the kernel headers and not part of the out-of-tree IIO code in the mangOH repository. The code now checks that CONFIG_IIO_CHAN_TYPE_GASRESISTANCE is defined before trying to reference IIO_GASRESISTANCE.
parent 80ebd697
......@@ -70,7 +70,9 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_CCT] = "cct",
[IIO_PRESSURE] = "pressure",
[IIO_HUMIDITYRELATIVE] = "humidityrelative",
#ifdef CONFIG_IIO_CHAN_TYPE_GASRESISTANCE
[IIO_GASRESISTANCE] = "gasresistance",
#endif /* CONFIG_IIO_CHAN_TYPE_GASRESISTANCE */
};
static const char * const iio_modifier_names[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment