Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Viresh Kumar and committed by
Greg Kroah-Hartman
ac96a609 0675363a

+4 -1
+4 -1
drivers/staging/greybus/firmware.h
··· 14 14 15 15 #define FW_NAME_PREFIX "gmp_" 16 16 17 - /* Length of the string in format: "FW_NAME_PREFIX""%08x_%08x_%08x_%08x_%s.tftf" */ 17 + /* 18 + * Length of the string in format: "FW_NAME_PREFIX""%08x_%08x_%08x_%08x_%s.tftf" 19 + * (3 + 1 + 4 * (8 + 1) + 10 + 1 + 4 + 1) 20 + */ 18 21 #define FW_NAME_SIZE 56 19 22 20 23 /* Firmware Management Protocol specific functions */