summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/firmware.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-08-11 13:27:23 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-12 17:38:19 +0200
commitb2abeaa10d5711e7730bb07120dd60ae27d7b930 (patch)
tree5bca52c2b995b9c07638ac83a6090c15f646ae8d /drivers/staging/greybus/firmware.h
parent769cb83704db127119d063b55091f782007368e7 (diff)
downloadlinux-b2abeaa10d5711e7730bb07120dd60ae27d7b930.tar.bz2
greybus: firmware: s/_LEN/_SIZE
Alex Elder pointed out that the macros also count the trailing NULL ('\0') character and so it should be using SIZE instead of LEN. This patch makes that change. Reported-by: Alex Elder <alex.elder@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/firmware.h')
-rw-r--r--drivers/staging/greybus/firmware.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/firmware.h b/drivers/staging/greybus/firmware.h
index 841a0d532288..ec6bfb7f95c0 100644
--- a/drivers/staging/greybus/firmware.h
+++ b/drivers/staging/greybus/firmware.h
@@ -15,7 +15,7 @@
#define FW_NAME_PREFIX "gmp_"
/* Length of the string in format: "FW_NAME_PREFIX""%08x_%08x_%08x_%08x_%s.tftf" */
-#define FW_NAME_LEN 56
+#define FW_NAME_SIZE 56
/* Firmware Management Protocol specific functions */
int fw_mgmt_init(void);