aboutsummaryrefslogtreecommitdiffstats
path: root/tools/iio
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2017-05-04 15:13:20 +0300
committerJonathan Cameron <jic23@kernel.org>2017-05-07 16:08:04 +0100
commitf80ac400ee762bba3a420a4a537ce6ae7854b657 (patch)
tree939c9dd7e3a3ccb5d0d3961f129a4e4b4bbc5329 /tools/iio
parentiio: adc: Fix bad GENMASK use, typos, whitespace (diff)
downloadlinux-dev-f80ac400ee762bba3a420a4a537ce6ae7854b657.tar.xz
linux-dev-f80ac400ee762bba3a420a4a537ce6ae7854b657.zip
iio: tools: generic_buffer: increase trigger length
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>
Diffstat (limited to 'tools/iio')
-rw-r--r--tools/iio/iio_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/iio/iio_utils.h b/tools/iio/iio_utils.h
index 780f2014f8fa..8b379da26e35 100644
--- a/tools/iio/iio_utils.h
+++ b/tools/iio/iio_utils.h
@@ -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"