#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/firmware.h>
#include "as102_drv.h"
#include "as102_fw.h"
static const char as102_st_fw1[] = …;
static const char as102_st_fw2[] = …;
static const char as102_dt_fw1[] = …;
static const char as102_dt_fw2[] = …;
static unsigned char atohx(unsigned char *dst, char *src)
{ … }
static int parse_hex_line(unsigned char *fw_data, unsigned char *addr,
unsigned char *data, int *dataLength,
unsigned char *addr_has_changed) { … }
static int as102_firmware_upload(struct as10x_bus_adapter_t *bus_adap,
unsigned char *cmd,
const struct firmware *firmware) { … }
int as102_fw_upload(struct as10x_bus_adapter_t *bus_adap)
{ … }