2 * Load firmware files from Analog Devices SigmaStudio
4 * Copyright 2009-2011 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
9 #ifndef __SIGMA_FIRMWARE_H__
10 #define __SIGMA_FIRMWARE_H__
12 #include <linux/device.h>
13 #include <linux/regmap.h>
20 unsigned char payload
[];
23 struct sigma_firmware
{
24 const struct firmware
*fw
;
28 int (*write
)(void *control_data
, const struct sigma_action
*sa
,
32 int _process_sigma_firmware(struct device
*dev
,
33 struct sigma_firmware
*ssfw
, const char *name
);
37 extern int process_sigma_firmware(struct i2c_client
*client
, const char *name
);
38 extern int process_sigma_firmware_regmap(struct device
*dev
,
39 struct regmap
*regmap
, const char *name
);