diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2016-07-20 10:11:37 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-07-20 10:29:07 -0700 |
commit | 8a704565ebda9603c294aacebb34e47cd9d9a3a0 (patch) | |
tree | 291aa9908458a9e3fbbe29687b59778e8a57b82e /drivers/staging/greybus/bootrom.c | |
parent | 4f7e413b2d2d2825dbb36b73f06e69514022b132 (diff) | |
download | linux-stable-8a704565ebda9603c294aacebb34e47cd9d9a3a0.tar.gz linux-stable-8a704565ebda9603c294aacebb34e47cd9d9a3a0.tar.bz2 linux-stable-8a704565ebda9603c294aacebb34e47cd9d9a3a0.zip |
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/bootrom.c')
-rw-r--r-- | drivers/staging/greybus/bootrom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/bootrom.c b/drivers/staging/greybus/bootrom.c index 688184181e0c..309e0a7c865a 100644 --- a/drivers/staging/greybus/bootrom.c +++ b/drivers/staging/greybus/bootrom.c @@ -13,6 +13,7 @@ #include <linux/workqueue.h> #include "greybus.h" +#include "firmware.h" /* Timeout, in jiffies, within which the next request must be received */ #define NEXT_REQ_TIMEOUT_MS 1000 @@ -157,7 +158,7 @@ static int download_firmware(struct gb_bootrom *bootrom, u8 stage) * XXX Name it properly.. */ snprintf(firmware_name, sizeof(firmware_name), - "ara_%08x_%08x_%08x_%08x_s2l.tftf", + FW_NAME_PREFIX "%08x_%08x_%08x_%08x_s2l.tftf", intf->ddbl1_manufacturer_id, intf->ddbl1_product_id, intf->vendor_id, intf->product_id); |