#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/slab.h>
#include <linux/rtnetlink.h>
#include "net_driver.h"
#include "efx.h"
#define to_ef4_mtd_partition(mtd) …
static int ef4_mtd_erase(struct mtd_info *mtd, struct erase_info *erase)
{ … }
static void ef4_mtd_sync(struct mtd_info *mtd)
{ … }
static void ef4_mtd_remove_partition(struct ef4_mtd_partition *part)
{ … }
int ef4_mtd_add(struct ef4_nic *efx, struct ef4_mtd_partition *parts,
size_t n_parts, size_t sizeof_part)
{ … }
void ef4_mtd_remove(struct ef4_nic *efx)
{ … }
void ef4_mtd_rename(struct ef4_nic *efx)
{ … }