build/patch/kernel/archive/sunxi-6.2/patches.megous/media-gc2145-Disable-debug-output.patch

38 lines
1023 B
Diff

From e707d794fb2e7a9948b8caa92e651e84d201fc89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Wed, 27 Oct 2021 17:22:51 +0200
Subject: [PATCH 040/391] media: gc2145: Disable debug output
People don't like it. Hmm...
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/media/i2c/gc2145.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/gc2145.c b/drivers/media/i2c/gc2145.c
index aecd88a8e..e9479bb50 100644
--- a/drivers/media/i2c/gc2145.c
+++ b/drivers/media/i2c/gc2145.c
@@ -8,7 +8,7 @@
* (at your option) any later version.
*/
-#define DEBUG
+//#define DEBUG
#include <asm/div64.h>
#include <linux/clk.h>
@@ -374,7 +374,7 @@ static int gc2145_switch_bank(struct gc2145_dev *sensor, u16 reg)
return ret;
sensor->current_bank = bank;
- dev_info(&sensor->i2c_client->dev, "bank switch: 0x%02x\n",
+ dev_dbg(&sensor->i2c_client->dev, "bank switch: 0x%02x\n",
(unsigned int)sensor->current_bank);
}
--
2.35.3