#include <linux/debugfs.h>
#include <linux/mtd/spi-nor.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi-mem.h>
#include "core.h"
#define SPI_NOR_DEBUGFS_ROOT …
#define SNOR_F_NAME …
static const char *const snor_f_names[] = …;
#undef SNOR_F_NAME
static const char *spi_nor_protocol_name(enum spi_nor_protocol proto)
{ … }
static void spi_nor_print_flags(struct seq_file *s, unsigned long flags,
const char *const *names, int names_len)
{ … }
static int spi_nor_params_show(struct seq_file *s, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static void spi_nor_print_read_cmd(struct seq_file *s, u32 cap,
struct spi_nor_read_command *cmd)
{ … }
static void spi_nor_print_pp_cmd(struct seq_file *s,
struct spi_nor_pp_command *cmd)
{ … }
static int spi_nor_capabilities_show(struct seq_file *s, void *data)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static void spi_nor_debugfs_unregister(void *data)
{ … }
static struct dentry *rootdir;
void spi_nor_debugfs_register(struct spi_nor *nor)
{ … }
void spi_nor_debugfs_shutdown(void)
{ … }