#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
* 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);
#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);
#include "firmware.h"
#include "greybus.h"
-/* Length of the string in format: ara_%08x_%08x_%08x_%08x_%s.tftf */
-#define FW_NAME_LEN 56
/* Estimated minimum buffer size, actual size can be smaller than this */
#define MIN_FETCH_SIZE 512
/* Timeout, in jiffies, within which fetch or release firmware must be called */
fw_req->firmware_id = ret;
snprintf(fw_req->name, sizeof(fw_req->name),
- "ara_%08x_%08x_%08x_%08x_%s.tftf",
+ FW_NAME_PREFIX "%08x_%08x_%08x_%08x_%s.tftf",
intf->ddbl1_manufacturer_id, intf->ddbl1_product_id,
intf->vendor_id, intf->product_id, tag);