iio: tools: generic_buffer: increase trigger length
authorEugen Hristev <eugen.hristev@microchip.com>
Thu, 4 May 2017 12:13:20 +0000 (15:13 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 May 2017 15:08:04 +0000 (16:08 +0100)
Increased trigger length to 64 in order to cope with trigger names
like fc030000.adc-dev0-external-rising

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_utils.h

index 780f2014f8fa224e761f312fd7124c5d73e70ce2..8b379da26e35d367c7aeecff465bc5154828def9 100644 (file)
@@ -13,7 +13,7 @@
 #include <stdint.h>
 
 /* Made up value to limit allocation sizes */
-#define IIO_MAX_NAME_LENGTH 30
+#define IIO_MAX_NAME_LENGTH 64
 
 #define FORMAT_SCAN_ELEMENTS_DIR "%s/scan_elements"
 #define FORMAT_TYPE_FILE "%s_type"