summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/firmware.h
diff options
context:
space:
mode:
authorViresh Kumar2016-08-11 22:27:25 +0200
committerGreg Kroah-Hartman2016-08-12 17:38:19 +0200
commitac96a609dca8b1909f93d13277dd5368e2de5a2a (patch)
tree2d578b9e7c8f22b12c6106044156b2d817c09553 /drivers/staging/greybus/firmware.h
parentgreybus: firmware: s/should/must (diff)
downloadkernel-qcow2-linux-ac96a609dca8b1909f93d13277dd5368e2de5a2a.tar.gz
kernel-qcow2-linux-ac96a609dca8b1909f93d13277dd5368e2de5a2a.tar.xz
kernel-qcow2-linux-ac96a609dca8b1909f93d13277dd5368e2de5a2a.zip
greybus: firmware: add comment to show size calculations
The firmware file name's maximum length is set to 56 right now, but it isn't very much readable how we got to that value (unless someone reads that line). Update the comment to show calculations. 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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/greybus/firmware.h b/drivers/staging/greybus/firmware.h
index ec6bfb7f95c0..f4f0db1cefe8 100644
--- a/drivers/staging/greybus/firmware.h
+++ b/drivers/staging/greybus/firmware.h
@@ -14,7 +14,10 @@
#define FW_NAME_PREFIX "gmp_"
-/* Length of the string in format: "FW_NAME_PREFIX""%08x_%08x_%08x_%08x_%s.tftf" */
+/*
+ * Length of the string in format: "FW_NAME_PREFIX""%08x_%08x_%08x_%08x_%s.tftf"
+ * (3 + 1 + 4 * (8 + 1) + 10 + 1 + 4 + 1)
+ */
#define FW_NAME_SIZE 56
/* Firmware Management Protocol specific functions */