diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-05-02 10:51:49 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-03 17:26:36 -0700 |
commit | 7557d0481bdeed86780c073e591df0330ec88a9e (patch) | |
tree | 1405ae6710cfaa14526049c0432829f620b9b582 /drivers/staging/greybus | |
parent | cca22207673896262443c72f19b049552d65f88e (diff) |
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: Greg Kroah-Hartman <gregkh@google.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/fw-download.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/greybus/fw-download.c b/drivers/staging/greybus/fw-download.c index 836b02b9d7c6..e60abde2d704 100644 --- a/drivers/staging/greybus/fw-download.c +++ b/drivers/staging/greybus/fw-download.c @@ -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; }; |