Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 110ef5d9 authored by Zhenlin Lian's avatar Zhenlin Lian
Browse files

drivers: can: Enclose mcp25xxfd_dump_regs into CONFIG_DEBUG_FS



Move func mcp25xxfd_dump_regs into CONFIG_DEBUG_FS to avoid forbidden
worning: unused function 'mcp25xxfd_dump_regs' [-Wunused-function]
error, forbidden warning: mcp25xxfd.c:3948.

Change-Id: I5d498ca94cd2e62195ad09680f5bf9624ae36f98
Signed-off-by: default avatarZhenlin Lian <quic_zlian@quicinc.com>
parent ffe4a7cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3945,6 +3945,7 @@ static const struct spi_device_id mcp25xxfd_id_table[] = {
};
MODULE_DEVICE_TABLE(spi, mcp25xxfd_id_table);

#if defined(CONFIG_DEBUG_FS)
static int mcp25xxfd_dump_regs(struct seq_file *file, void *offset)
{
	struct spi_device *spi = file->private;
@@ -3984,7 +3985,6 @@ static int mcp25xxfd_dump_regs(struct seq_file *file, void *offset)
	return 0;
}

#if defined(CONFIG_DEBUG_FS)
static void mcp25xxfd_debugfs_add(struct mcp25xxfd_priv *priv)
{
	struct dentry *root, *fifousage, *fifoaddr, *rx, *tx, *status,