summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Haslam <ahaslam@baylibre.com>2016-01-29 11:34:19 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-02-01 17:52:20 -0800
commit3f830562deade2ab6163f07ee6829158cc070ee4 (patch)
treecc5f8acdc15a6ae485919a2db1dff567c27d574b
parent8ec589b9796eebfa266d2b047ee2318541814e28 (diff)
greybus: loopback_test: Decrease the max number of devices
Its unrealistic to expect 50 loopback devices, and the mask parameter can hold up to "int" anyways so decrease to max number of devices to sane value. Signed-off-by: Axel Haslam <ahaslam@baylibre.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
-rw-r--r--drivers/staging/greybus/tools/loopback_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/tools/loopback_test.c b/drivers/staging/greybus/tools/loopback_test.c
index e8d35bd95cc7..6178354fbb74 100644
--- a/drivers/staging/greybus/tools/loopback_test.c
+++ b/drivers/staging/greybus/tools/loopback_test.c
@@ -17,7 +17,7 @@
#include <unistd.h>
#include <dirent.h>
-#define MAX_NUM_DEVICES 50
+#define MAX_NUM_DEVICES 10
#define MAX_SYSFS_PATH 0x200
#define CSV_MAX_LINE 0x1000
#define SYSFS_MAX_INT 0x20