[PATCH] media: saa7146: remove unused dump_registers() debug helper
From: Zain Aboobacker
Date: Sat Sep 26 2026 - 12:26:20 EST
dump_registers() is compiled out with #if 0 and has no callers.
Remove the dead code.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Zain Aboobacker <zainaboobacker33@xxxxxxxxx>
---
drivers/media/common/saa7146/saa7146_core.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/drivers/media/common/saa7146/saa7146_core.c b/drivers/media/common/saa7146/saa7146_core.c
index b705c4bcaffa..92b5be153613 100644
--- a/drivers/media/common/saa7146/saa7146_core.c
+++ b/drivers/media/common/saa7146/saa7146_core.c
@@ -18,17 +18,6 @@ unsigned int saa7146_debug;
module_param(saa7146_debug, uint, 0644);
MODULE_PARM_DESC(saa7146_debug, "debug level (default: 0)");
-#if 0
-static void dump_registers(struct saa7146_dev* dev)
-{
- int i = 0;
-
- pr_info(" @ %li jiffies:\n", jiffies);
- for (i = 0; i <= 0x148; i += 4)
- pr_info("0x%03x: 0x%08x\n", i, saa7146_read(dev, i));
-}
-#endif
-
/****************************************************************************
* gpio and debi helper functions
****************************************************************************/
base-commit: f5f84daefcd92d7a630066635ecea1433ed5eac7
--
2.53.0