#include <linux/i2c.h>
#include <linux/firmware.h>
#include <linux/device.h>
#include <linux/export.h>
#include "../include/linux/libmsrlisthelper.h"
#include <linux/module.h>
#include <linux/slab.h>
struct tbd_header { … } __packed;
struct tbd_record_header { … } __packed;
struct tbd_data_record_header { … } __packed;
#define TBD_CLASS_DRV_ID …
static int set_msr_configuration(struct i2c_client *client, uint8_t *bufptr,
unsigned int size)
{ … }
static int parse_and_apply(struct i2c_client *client, uint8_t *buffer,
unsigned int size)
{ … }
int apply_msr_data(struct i2c_client *client, const struct firmware *fw)
{ … }
EXPORT_SYMBOL_GPL(…);
int load_msr_list(struct i2c_client *client, char *name,
const struct firmware **fw)
{ … }
EXPORT_SYMBOL_GPL(…);
void release_msr_list(struct i2c_client *client, const struct firmware *fw)
{ … }
EXPORT_SYMBOL_GPL(…);
static int init_msrlisthelper(void)
{ … }
static void exit_msrlisthelper(void)
{ … }
module_init(…) …;
module_exit(exit_msrlisthelper);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;