armbian_build/patch/kernel/archive/sunxi-5.18/patches.megous/media-gc2145-Disable-debug-output.patch
The-going 0c438d8c56
sunxi-5.18: Add armbian patches (#3846)
* sunxi-5.18 Initial state for armbian patches

* Adapting patches to the new kernel, sort, add new megous patches

* DEBUG

* Add the latest patches

* fix: compile error

drivers/spi/spi.c:3548:3: note: in expansion of macro ‘dev_info’
   dev_info(&spi->dev, "spi_setup / gpio_is_valid(%d) ... doing gpio_request ...\n", spi->cs_gpio);
   ^~~~~~~~
drivers/spi/spi.c:3549:9: error:
 implicit declaration of function ‘gpio_request’;
 did you mean ‘gpio_to_desc’? [-Werror=implicit-function-declaration]
   ret = gpio_request(spi->cs_gpio, dev_name(&spi->dev));
         ^~~~~~~~~~~~
         gpio_to_desc
drivers/spi/spi.c:3549:27: error:
 ‘struct spi_device’ has no member named ‘cs_gpio’;
 did you mean ‘cs_gpiod’?
   ret = gpio_request(spi->cs_gpio, dev_name(&spi->dev));
                           ^~~~~~~
                           cs_gpiod
drivers/spi/spi.c:3554:4: error:
 implicit declaration of function ‘gpio_direction_output’;
 did you mean ‘gpiod_direction_output’? [-Werror=implicit-function-declaration]
    gpio_direction_output(spi->cs_gpio,
    ^~~~~~~~~~~~~~~~~~~~~
    gpiod_direction_output
drivers/spi/spi.c:3554:31: error:
	‘struct spi_device’ has no member named ‘cs_gpio’;
	did you mean ‘cs_gpiod’?
    gpio_direction_output(spi->cs_gpio,
                               ^~~~~~~
                               cs_gpiod
In file included from ./include/linux/device.h:15,
                 from drivers/spi/spi.c:8:
drivers/spi/spi.c:3556:79: error:
 ‘struct spi_device’ has no member named ‘cs_gpio’;
 did you mean ‘cs_gpiod’?

* Remove pre-applied patches
2022-06-01 17:10:19 +02:00

29 lines
716 B
Diff

From 28772adeabfd3fcaa2f37a723961844b95c34366 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 481/516] media: gc2145: Disable debug output
People don't like it. Hmm...
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/media/i2c/gc2145.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/gc2145.c b/drivers/media/i2c/gc2145.c
index 4e15002972e9..a8c0bce21ff9 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>
--
2.35.3