提交 9bff02f8 编写于 作者: B Bryan Freed 提交者: Greg Kroah-Hartman

staging:iio: Reorder channel type strings to match the iio.h enums.

This makes comparison between the iio_chan_type_name_spec_shared strings
and the iio_chan_type enums easier.
Signed-off-by: NBryan Freed <bfreed@chromium.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 152d52cf
...@@ -44,21 +44,21 @@ struct bus_type iio_bus_type = { ...@@ -44,21 +44,21 @@ struct bus_type iio_bus_type = {
EXPORT_SYMBOL(iio_bus_type); EXPORT_SYMBOL(iio_bus_type);
static const char * const iio_chan_type_name_spec_shared[] = { static const char * const iio_chan_type_name_spec_shared[] = {
[IIO_TIMESTAMP] = "timestamp",
[IIO_ACCEL] = "accel",
[IIO_IN] = "in", [IIO_IN] = "in",
[IIO_OUT] = "out", [IIO_OUT] = "out",
[IIO_CURRENT] = "current", [IIO_CURRENT] = "current",
[IIO_POWER] = "power", [IIO_POWER] = "power",
[IIO_ACCEL] = "accel",
[IIO_IN_DIFF] = "in-in", [IIO_IN_DIFF] = "in-in",
[IIO_GYRO] = "gyro", [IIO_GYRO] = "gyro",
[IIO_TEMP] = "temp",
[IIO_MAGN] = "magn", [IIO_MAGN] = "magn",
[IIO_LIGHT] = "illuminance",
[IIO_INTENSITY] = "intensity",
[IIO_TEMP] = "temp",
[IIO_INCLI] = "incli", [IIO_INCLI] = "incli",
[IIO_ROT] = "rot", [IIO_ROT] = "rot",
[IIO_INTENSITY] = "intensity",
[IIO_LIGHT] = "illuminance",
[IIO_ANGL] = "angl", [IIO_ANGL] = "angl",
[IIO_TIMESTAMP] = "timestamp",
}; };
static const char * const iio_chan_type_name_spec_complex[] = { static const char * const iio_chan_type_name_spec_complex[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册