summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/firmware.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2016-07-20 10:11:37 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-20 10:29:07 -0700
commit8a704565ebda9603c294aacebb34e47cd9d9a3a0 (patch)
tree291aa9908458a9e3fbbe29687b59778e8a57b82e /drivers/staging/greybus/firmware.h
parent4f7e413b2d2d2825dbb36b73f06e69514022b132 (diff)
downloadop-kernel-dev-8a704565ebda9603c294aacebb34e47cd9d9a3a0.zip
op-kernel-dev-8a704565ebda9603c294aacebb34e47cd9d9a3a0.tar.gz
greybus: move all firmware prefix strings to one place
The firmware prefix is hard-coded in a few different places. Put it all in one handy #define, for when/if we ever decide to change it in the future... Testing: 'strings gb-firmware.ko gb-bootrom.ko | grep ara_' produced the same output before and after this patch. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Sandeep Patil <sspatil@google.com> 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, 5 insertions, 0 deletions
diff --git a/drivers/staging/greybus/firmware.h b/drivers/staging/greybus/firmware.h
index fb95537..2fbb263 100644
--- a/drivers/staging/greybus/firmware.h
+++ b/drivers/staging/greybus/firmware.h
@@ -12,6 +12,11 @@
#include "greybus.h"
+#define FW_NAME_PREFIX "ara_"
+
+/* Length of the string in format: "FW_NAME_PREFIX""%08x_%08x_%08x_%08x_%s.tftf" */
+#define FW_NAME_LEN 56
+
/* Firmware Management Protocol specific functions */
int fw_mgmt_init(void);
void fw_mgmt_exit(void);
OpenPOWER on IntegriCloud