Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Bryan Freed <bfreed@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Bryan Freed and committed by
Greg Kroah-Hartman
9bff02f8 152d52cf

+5 -5
+5 -5
drivers/staging/iio/industrialio-core.c
··· 44 44 EXPORT_SYMBOL(iio_bus_type); 45 45 46 46 static const char * const iio_chan_type_name_spec_shared[] = { 47 - [IIO_TIMESTAMP] = "timestamp", 48 - [IIO_ACCEL] = "accel", 49 47 [IIO_IN] = "in", 50 48 [IIO_OUT] = "out", 51 49 [IIO_CURRENT] = "current", 52 50 [IIO_POWER] = "power", 51 + [IIO_ACCEL] = "accel", 53 52 [IIO_IN_DIFF] = "in-in", 54 53 [IIO_GYRO] = "gyro", 55 - [IIO_TEMP] = "temp", 56 54 [IIO_MAGN] = "magn", 55 + [IIO_LIGHT] = "illuminance", 56 + [IIO_INTENSITY] = "intensity", 57 + [IIO_TEMP] = "temp", 57 58 [IIO_INCLI] = "incli", 58 59 [IIO_ROT] = "rot", 59 - [IIO_INTENSITY] = "intensity", 60 - [IIO_LIGHT] = "illuminance", 61 60 [IIO_ANGL] = "angl", 61 + [IIO_TIMESTAMP] = "timestamp", 62 62 }; 63 63 64 64 static const char * const iio_chan_type_name_spec_complex[] = {