Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7557d048 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

greybus: fw-download: Create a macro for length of firmware file's name



Create a macro representing the length of the firmware file's name and
use that instead of using magic number in the code.

Suggested-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent cca22207
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -11,9 +11,12 @@
#include "firmware.h"
#include "greybus.h"

/* Length of the string in format: ara_%08x_%08x_%08x_%08x_%s.tftf */
#define FW_NAME_LEN		56

struct fw_request {
	u8			firmware_id;
	char			name[56]; /* ara_%08x_%08x_%08x_%08x_%s.tftf */
	char			name[FW_NAME_LEN];
	const struct firmware	*fw;
	struct list_head	node;
};