armbian_build/patch/kernel/archive/sunxi-5.18/sunxi-gpio-sysfs-build.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

27 lines
858 B
Diff

From daed33d0944439dd9239057763b5e03bd9dd379f Mon Sep 17 00:00:00 2001
From: schwar3kat <61094841+schwar3kat@users.noreply.github.com>
Date: Sun, 3 Apr 2022 00:20:50 +1300
Subject: [PATCH] fix-gpio-kconfig remove if EXPERT to allow normal build
Signed-off-by: schwar3kat <61094841+schwar3kat@users.noreply.github.com>
---
drivers/gpio/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 947474f6a..0458a96a7 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -59,7 +59,7 @@ config DEBUG_GPIO
that are most common when setting up new platforms or boards.
config GPIO_SYSFS
- bool "/sys/class/gpio/... (sysfs interface)" if EXPERT
+ bool "/sys/class/gpio/... (sysfs interface)"
depends on SYSFS
select GPIO_CDEV # We need to encourage the new ABI
help
--